pythonocc-core
pythonocc-core copied to clipboard
`BRepAlgoAPI_Section` section and slicer examples not working in Jupyter
Hello!
I've tried running the binder examples in Jupyter Lab for BRepAlgoAPI_Section usages.
However, the slicer and the section examples don't work as expected.
Expectation: the displayed shape has lines where the sections or slices should be. Actual result: the shapes are displayed as-is, without any intersections or slices.
I've also tried uncommenting the part, where the sections should be displayed in the renderer, e.g.:
for section_ in sections:
rnd.DisplayShape(section_.Shape())
I've added some transparency for the original torus shape in the section example, if the sections are conflicting with the shape itself, but with no results.
For the slicer example, the renderer throws a runtime error:
RuntimeError: Standard_ConstructionErrorBnd_Box is void raised from method ShapeTesselator of class ShapeTesselator
What am I doing wrong?
Just checked if it works on my local machine using a different render engine, and it works perfectly:
Examples used: https://github.com/tpaviot/pythonocc-demos -> core_topology_boolean.py