mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Little improve about code example doc and geometry setting doc
This commit is contained in:
committed by
Thomas Krijnen
parent
cdde536651
commit
f0266a16a3
@@ -166,6 +166,26 @@ Get the distribution system of an element
|
|||||||
# For example, it might be part of a Chilled Water system
|
# For example, it might be part of a Chilled Water system
|
||||||
print("This pipe is part of the system", system.Name)
|
print("This pipe is part of the system", system.Name)
|
||||||
|
|
||||||
|
Copy an entity
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
|
Copy an entity is possible in different ways, depending on the task.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
root.copy_class
|
||||||
|
|
||||||
|
This is high level and makes sensible assumptions about copying things like properties, quantities, openings, and other relationships.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
util.element.copy
|
||||||
|
|
||||||
|
This is for shallow copies.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
util.element.copy_deep
|
||||||
|
|
||||||
|
This is for deep graph copy.
|
||||||
|
|
||||||
Create a simple model from scratch
|
Create a simple model from scratch
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -268,6 +268,14 @@ As in most viewer applications, IfcOpeningElement geometry is subtracted from th
|
|||||||
|
|
||||||
Disabling this settings will reduce processing time and improve robustness as it involves 3D Boolean operations.
|
Disabling this settings will reduce processing time and improve robustness as it involves 3D Boolean operations.
|
||||||
|
|
||||||
|
For example, if you want to set this setting in a python script you can use the following:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
settings = ifcopenshell.geom.settings()
|
||||||
|
settings.set(settings.DISABLE_OPENING_SUBTRACTIONS, True)
|
||||||
|
|
||||||
|
|
||||||
DISABLE_TRIANGULATION
|
DISABLE_TRIANGULATION
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user