Forum archiveIssue archiveModeling Data and Algorithms

Archived discussion

BRep_Tool::Triangulation always IsNull

Modeling Data and AlgorithmsTue, 12/17/2024 - 18:051 reply

Browse this forum
QuestionAuthor

How to check why triangulation.IsNull() when BRepMesh_IncrementalMesh mesher(localFace, deflection, Standard_True); is success? What is wrong?

TopLoc_Location location;
Handle(Poly_Triangulation) triangulation = BRep_Tool::Triangulation(localFace, location);
if (triangulation.IsNull()) {
std::cerr << "Error: No triangulation found for the face!" << std::endl;
return 1;
}

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Hello. You can validate your model using BRepCheck_Analyzer.

The mesh for some faces can be not build based on the problem on topology level.

Best regards, Commenter-1.