tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.37k stars 378 forks source link

How can we get control points/knot vector/basis function information from step file? #1131

Open Rennngw opened 2 years ago

Rennngw commented 2 years ago

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

traversal

output

cafhach commented 2 years ago

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