Get triangulated surface from STEP and IGES files

Hi! I'm new with opencascade. I want to get triangles and vertices from STEP and IGES files but I don't know what is the best way to get the triangulated surface from those types of files. 

Thanks in advance!

Germán

Forum supervisor's picture

Hello Germán,

Reading STEP or IGES files can give you topological shapes that do not contain any triangulations. To create such, these shapes need to be meshed with help of a meshing algorithm, for example, the standard BRepMesh_IncrementalMesh or a more advanced Express Mesh. When a shape is meshed, you can explore triangluations (of type Poly_Triangulation) of its faces using some of the available exploration tools, like TopExp_Explorer.

Should you wish to learn deeper our SDK, or require our assistance in answering questions like this one, please, consider our training and support offer.

Best regards,

Forum supervisor

P.S.: We have sent some additional information to your email address.

Germán Svriz's picture

Thanks for the help! I worked for me.