DiscussionsIssue archiveOther usage issues

Archived discussion

Reason for Null triangulation

Other usage issuesFri, 05/05/2000 - 12:331 reply

Browse this forum
QuestionAuthor

Hello

I create a face from Geom_Surface using BRepBuilderAPI_Makeface, then I using the Triangulation function in the BRep_Tool package ( see code below ). What is the reason for getting a NULL triangulation ?

----------------- My code -------------------- void Surface::DrawTriangulations(Handle(Geom_Surface)& S ) {

Standard_Integer result(0);

TopoDS_Face F = BRepBuilderAPI_MakeFace(S);

TopLoc_Location L;

Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);

if (!facing.IsNull()) {

cout

result = result + facing->NbTriangles();

} else {

cout

} } -------------------------------------------

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Use BRepMesh::Mesh(_face, dDeflection); before get triangulation