pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

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

Open Rennngw opened this issue 2 years ago • 1 comments

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

Rennngw avatar Aug 03 '22 08:08 Rennngw

  • 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

cafhach avatar Aug 15 '22 12:08 cafhach