I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.create_shape(settings, product)
As a result of #564 I was able to extract just one of the results in a separate IFC file. I will go for a PR on files repo (IfcOpenShell/files#2) and post the file link here afterwards.
code to reproduce the crash:
import ifcopenshell
from ifcopenshell import geom
settings = ifcopenshell.geom.settings()
settings.set(settings.USE_BREP_DATA,True)
settings.set(settings.SEW_SHELLS,True)
settings.set(settings.USE_WORLD_COORDS,True)
ifcfile = 'C:/Users/BHA/Downloads/743--segfault-on-geometry.ifc'
f = ifcopenshell.open(ifcfile)
p = f[1944]
print(p)
cr = ifcopenshell.geom.create_shape(settings, p)
BTW: ifc++ gave the following warning
Warning: triangulateLoops, face_loops.size() == 0, IFC entity: #1941=IfcExtrudedAreaSolid
link to topic on FreeCAD forum
https://forum.freecadweb.org/viewtopic.php?f=39&t=41600&p=354486#p354483
cheers bernd
I got hands on a huge ifcfile (ca 100 MB) exported from Cadmatic. I have never had files from them before. A lot of products make ifcopenshell ends up in a segmentation fault on ifcopenshell.geom.create_shape(settings, product)
As a result of #564 I was able to extract just one of the results in a separate IFC file. I will go for a PR on files repo (IfcOpenShell/files#2) and post the file link here afterwards.
code to reproduce the crash:
BTW: ifc++ gave the following warning
Warning: triangulateLoops, face_loops.size() == 0, IFC entity: #1941=IfcExtrudedAreaSolidlink to topic on FreeCAD forum
https://forum.freecadweb.org/viewtopic.php?f=39&t=41600&p=354486#p354483
cheers bernd