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

Reason for Null triangulation

Anonymous's picture


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()) {


result = result + facing->NbTriangles();

} else {


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

Sylvain Lecluze's picture

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

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.