Code: Alles auswählen
import ifcopenshell
from ifcopenshell import geom
def read_geom(ifc_path):
ifc_file = ifcopenshell.open("wall.ifc")
settings = geom.settings()
for ifc_entity in ifc_file.by_type("IfcWall"):
shape = geom.create_shape(settings, ifc_entity)
# ios stands for IfcOpenShell
ios_vertices = shape.geometry.verts
ios_edges = shape.geometry.edges
ios_faces = shape.geometry.faces
# IfcOpenShell store vertices in a single tuple, same for edges and faces
print(ios_vertices)
print(ios_edges)
print(ios_faces)