Tessellate IFC Elements
Feature Group: Convert | IfcOpenShell / IfcPatch
This feature converts the geometry of selected IFC Elements to a mesh of triangles using IfcOpenShell IfcPatch module with 'TessellateElements' recipe.
Standard geometry operations can be performed on mesh without needing to resort to a sophisticated geometry library.
The IFC File must have a schema version IFC4 or more recent.
Submit the processing request
#
# Tessellate selected product elements in an IFC
#
class TessellateIfcElements_Instruction(BaseModel):
sourceFileURL: str | None = "http://localhost:8002/IFC_SOURCE_FILES/AC20-FZK-Haus.ifc"
tessellateIfcElements: TessellateIfcElements
class TessellateIfcElements(BaseModel):
elementTypes: list[str] | None = ["IfcSpace"]
forcedFacetedBREP: bool | None = False
class TessellateIfcElements_Result(BaseModel):
resultPath: str # relative path of the result file (ifc)
runtime: float | None = 0.0 # in seconds
The elementTypes gives the list of element for which we expect to change the geometry representation.
Note
Tessellate does not maintain the style (this is a known feature / bug). In the present state, tesselation should better not be used on the primary import.