Little improve about code example doc and geometry setting doc

This commit is contained in:
Massimo Fabbro
2022-10-18 22:14:49 +02:00
committed by Thomas Krijnen
parent cdde536651
commit f0266a16a3
2 changed files with 28 additions and 0 deletions
@@ -166,6 +166,26 @@ Get the distribution system of an element
# For example, it might be part of a Chilled Water system
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
----------------------------------
@@ -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.
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
---------------------