Getting Draw Data!

Hi

I'm new to this library, and would like to know if it's possible to get the draw data (geometry info) of the object created, so that I can render them using whatever video API of choice.

Rob Bachrach's picture

Of course, you can always use the visualization code supplied with OCC (uses OpenGL). Otherwise, you can use the BRepMesh class to generate a displayable edge and surface mesh. You can access the mesh using BRep_Tool::Triangulation (for faces) and BRep_Tool::PolygonOnTriangulation (for edges).

Win Than Aung's picture

plz have a look at old posts. this forum is really useful. answers to all the question you need to ask can be found in the documentation and in this forum.

Dmitry Khabi's picture

It is very intresting pretension.
Could you help me with this question:
How can I shown a same colorized Shape in two different V3d_View so,
that in one View the shape is shown with difined colors and in one other its shown with only one color.