pythonocc-core
pythonocc-core copied to clipboard
How can we get control points/knot vector/basis function information from step file?
Hello,
I have a problem about extracting information.
I can import the step file and use explorer to iterate over each shape, but how can I get the geometry information of the model in the step file? Such as control points, node vectors, basis functions, etc.
Below the attachments is the code for how I do the traversal, which uses a map to hold each subtype. When I complete the traversal and output the results in the map, it seems that the output is topology information. How can I output information such as control point node vectors?
Please help me. Thanks and kind regards
Ren
- geometry of surfaces can be accesses from face objects
- geometry of curves can be accesses from edge objects
Here's the documentation for the C++ interface. It's present in pythonocc too
https://dev.opencascade.org/doc/refman/html/class_b_rep___tool.html