get solid geometry with IfcOpenShell 0.8.3
We're trying to switch to 0.8.x ...
- We do extract geometry out of ifc in brep format.
- We do process this geometry by the use of FreeCAD.
Follows up:
By the use of the new geometry kernel we do not know how to easily get the geometry into FreeCAD (brep was native FreeCAD geometry )?
orBy the use of the occ geometry kernel we do realized occ seams no longer part of ifcopenshell. Is this true?
https://docs.ifcopenshell.org/ifcopenshell/geometry_settings.html#use-python-opencascade
PS: I made a related post on FreeCAD forum but after some more work on this I realized this is more a IfcOpenShell problem ... thus this post here ... https://forum.freecad.org/viewtopic.php?t=97333
Comments
Just the setting names became strings
OpenCASCADE is not gone. It's just there is also the possibility to use CGAL now, which is currently of no use when you want to interface with FreeCAD
Thomas, thanks for the hint, but somehow OCC is not part of the ifcopenshell which comes with pip ?
on windows ... in a PowerShell ...
in Python:
is there a version to download available which includes Python OpenCascade, which could I copy to my site-packages manually ?
No, but that has always been the case. The OCC C++ code is linked in into the executable, but PythonOCC is not packaged as part of the python module. Easiest way to install is using anaconda
conda install -c conda-forge pythonocc
Ahh, I got the point now ...
I still have som missunderstandings, because it works without installing PythonOCC for 0.7.x
Ah that's what you mean. That indeed doesn't depend on pythonocc.
settings.set(settings.USE_BREP_DATA, True)
became
settings.set('iterator-output', ifcopenshell.ifcopenshell_wrapper.SERIALIZED)
great :-) thanks very much Thomas ...
You probably still want to set the other settings
st.set('reorient-shells', True)
st.set('use-world-coords', True)
ahh for sure, because they are not included in iterator-output ...
Eventually the problem was, I was totally on the wrong track ...
for reference ...