Extracting Non-Triangulated Surface Polygons from IFC Models #6458
-
Hi everyone, I'm looking for some guidance on extracting primitive geometry directly from IFC models. Currently, I'm utilizing the create_shape function, which provides me a TriangulationElement. From there, I extract the faces and vertices using get_vertices and get_faces.
However, my objective is to perform operations on complete surfaces rather than working with a triangulated mesh. Specifically, for a simple wall o 8000 bject I would want to extract the six rectangular faces without breaking them down into triangles. As far as I understand, the triangulation isn't stored in the IFC file itself but is rather generated within IfcOpenShell? I am aware of some possibilities using OpenCascade to extract geometry as BRep, but I am struggeling with the install process, and therefore it seems a bit overkill for my current use case. Or is this the route I have to take? Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, that depends on the question: do you care about the possibility of having a curved wall with openings? Because in that case you do really need the full occt brep model that will tell you you have a Face with a cylindrical surface with exterior and interior bounding wires. If you do not care / do not expect that, you can have ifcopenshell reverse engineer the polygons (with holes) back from the triangulation.
|
Beta Was this translation helpful? Give feedback.
Well, that depends on the question: do you care about the possibility of having a curved wall with openings? Because in that case you do really need the full occt brep model that will tell you you have a Face with a cylindrical surface with exterior and interior bounding wires.
If you do not care / do not expect that, you can have ifcopenshell reverse engineer the polygons (with holes) back from the triangulation.