It seems that IfcOpenShell serialization breaks at curved objects?
more specifically it crashes at code line when TopoDS_Shape is sphere or cylinder.
C++:
IfcSchema::IfcProductDefinitionShape* ifcShape = IfcGeom::serialise(STRINGIFY(IfcSchema), part_shape, true)->asIfcSchema::IfcProductDefinitionShape();
how to fix or work around this? I just need the my model be exported to a ifc file.
A workable piece of code would be great
Mary Guty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.