-
Currently I've builded IfcOpenShell ver 0.7.0, and tried ifcConvert.exe to trans an ifc file into obj file. The conversion works great but I have trouble in the next step: my goal is to read an ifc file, and draw it through OpenGL. So my problem comes up: how can I get the geometry data from ifc, and trans them to OpenGL vertex buffer object directly, instead of transing them into obj then read obj into vertex buffer object? I wonder if there is a obvious data stream we can cite to boost my target. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 36 replies
-
IfcConvert is just one possible use of the "geometry iteration" mechanism we have in IfcOpenShell. Using If you want I think it'd make a nice tutorial series for academy.ifcopenshell.org/ so I can help code review and provide feedback if we get a tutorial out of it. |
Beta Was this translation helpful? Give feedback.
IfcConvert is just one possible use of the "geometry iteration" mechanism we have in IfcOpenShell. Using
IfcGeom::Iterator
which you can iterate over to give you a bunch ofIfcGeom::TriangulationElement
. The data model is something you can almost directly feed to OpenGL.If you want I think it'd make a nice tutorial series for academy.ifcopenshell.org/ so I can help code review and provide feedback if we get a tutorial out of it.