3

I have read the .stp files using OpenCascade library, but I am not able to visualize it. How to use OpenCascade library to visualize (render) the .stp file.

2 Answers2

2

Open CASCADE is shipped with a Qt sample named "IESample". It demonstrates how to import and export STEP and IGES files and how to visualize them. The method Translate::displayShSequence(...) in Translate.cxx adds shapes to an interactive context and updates the viewer.

Benjamin Bihler
  • 1,612
  • 11
  • 32
1

F3D is using OpenCascade to visualize .stp files, you can take a look at:

https://github.com/f3d-app/f3d/

Mathieu Westphal
  • 2,544
  • 1
  • 19
  • 33