For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

How To Get Tessellated triangles from TopoDS_Face?

Dongki Lee's picture
Forums: 

Hi,

I'm quite novice for OpenCascade.
I'd like to get 3D vertices and triangle sequences for the purpose of shaded face rendering.
I am using my own OpenGL VBO renderer, so the only thing I need is vertices and triangles for a certain face.
I found "Poly_Triangulation" data structure and "BRepTools::Triangulation()" function which is validate the triangulated result. But applying this function on my TopoDS_Face object, result is always false, it means there's no triangulated result. I guess that before using Triangulation function, there's some function to triangulate the face.

I have 3rd party surface mesher which can mesh TopoDS_Face object but I had to decide the optimal mesh size and sometimes it fails to mesh, and slow performance also.

How can I triangulate (tessellate) TopoDS_Face object using OpenCascade library for the display purpose?

Best Regards.

Dongki Lee's picture

Problem Solved !!

I found BRepMesh::Mesh() function. It works fine.