Unable to generate Tesselation on Face as well as Shape

Dear all,
a new problem just hit me :)

I have to tesselate a TopoShape.

I currently do it like this:

TopExp_Explorer aExpFace; for(aExpFace.Init(pcShape->getShape(),TopAbs_FACE);aExpFace.More();aExpFace.Next())
TopoDS_Face aFace = TopoDS::Face(aExpFace.Current());
TopLoc_Location aLocation;
// takes the triangulation of the face aFace:
Handle_Poly_Triangulation aTr = BRep_Tool::Triangulation(aFace,aLocation);

Now I check if the Handle is Null...and in fact for the first face of my shape it is null all the time...Why????

If I let the for loop continue over all the faces then in the end all the faces are meshed the right way but not the first one (its the only face that is also a trimmed surface below ).

Can anyone help me on this??

All the best.


dvdjimmy's picture

Hi all,

I solved it by using the BRepMesh_IncrementalMesh mesher instead of the BRepMesh mesher.

There is still one curious thing: If I only would like to mesh the trimmed face its still not working. Only if I give the complete shape to the BRepMesh_IncrementalMesh class.

With best regards,