FreeCAD crash while trying to create Part object from PythonOCC.OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19 (Git)
Build type: Release
Branch: master
Hash: fd5df98b6a10c63a378cd0869a2e60f3bd2a0516
Python version: 3.7.3
Qt version: 5.12.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Steps to reproduce :
- Create a new document
- Switch to Part workbench
- Execute code below
- FreeCAD crash with error message below
Code: Select all
import ifcopenshell
import ifcopenshell.geom
ifc_path = "TestModel_ACAD.ifc"
ifc_file = ifcopenshell.open(ifc_path)
s = ifcopenshell.geom.settings()
s.set(s.USE_PYTHON_OPENCASCADE, True)
s.set(s.USE_WORLD_COORDS, True)
s.set(s.INCLUDE_CURVES, True)
s.set(s.USE_BREP_DATA, True)
space_boundaries = ifc_file.by_type('IfcRelSpaceBoundary')
doc = FreeCAD.ActiveDocument
for space_boundary in (b for b in space_boundaries if b.Name == "2ndLevel"):
outer_boundary = space_boundary.ConnectionGeometry.SurfaceOnRelatingElement.OuterBoundary
occ_shape = ifcopenshell.geom.create_shape(s, outer_boundary)
face = Part.__fromPythonOCC__(occ_shape)
Part.show(face)
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
Erreur de segmentation (core dumped)
- log
- sample file