BRep_Tool question ?

Hi !

When I use:

Handle(Poly_Triangulation) tr = BRep_Tool::Triangulation( face, loc);

I get the nodes and the indices for the triangles, but I do not get any normals neither for the triangles or the vertices.

I can of course calculate these on my own, but it can be a bit expensive in time, so if they already exists this would be nice, are there any way to access ther normals for the triangles ?

Mikael

ramkumar's picture

Hello,
I am finding a strange problem. I have created a valid face and when I try
Handle(Poly_Triangulation) tr = BRep_Tool::Triangulation( face, loc); I am getting a tr.IsNULL to be true.

Can anybody help me please.

Rob Bachrach's picture

Was the face ever meshed? Check out the BRepMesh class. This will mesh the face and store the triangulation.