I pretty much converted his code to Python-OCC (plus aocutils), and was able to get a hierarchy of Shapes, Surfaces, Wires etc, please find test file attached.
But! How to upcast from Geom_Curve to Geom_Circle in Python-OCC? They are not members of the same hierarchy as C++ classes are. In general, how extract radii
from circle or points from spline?
Thank you,
SP
Discussion
5 archived replies
Posts are displayed in their archived order.
01Commenter-1
Hi Author,
I don't know how to cast the surface type in python, but I saw a small type error in your code: