How to obtain the geometry representation of object imported from a STEP file

Hi,

I'm new in OpenCascade.
Actually I participate to an european project called KOBAS. The aim of this project is to create a complete CAM system (FEM, Manufacturing Rules, Data Base Experience ...).

I need to have the geometry representation of object which cames from a STEP file.

Actually I can visualise an imported STEP file but I can't obtain the geometry (points , lines, curves...) which represent this one.

Can someone help me ?

Thanks for your answer.

Roman Lygin's picture

Hi,

You can explore the shape imported from STEP just like any other shape received by different means (constructing bottom-up, as a result of modeling operations, importing from another format,etc).
Use TopExp_Explorer to explore and BRep_Tool:: (::Surface(), ::Curve(), ::Pnt()) to consult geometry.

You know, RTFM :-).

If you are funded within your project, you can request support from Open CASCADE team. It will definitively save your time and help you better write your code.

Good luck.

Roman

Kreshnik's picture

Hi,

Thank you for your quick answer.

Can you give me a little example, It will be very useful for me.

Thanks for your answer.

Kreshnik's picture

Hi,

Thank you for your quick answer.

Can you give me a little example, It will be very useful for me.

Thanks for your answer.