Log error about missing triangulation

This commit is contained in:
Thomas Krijnen
2019-11-05 15:47:02 +01:00
parent 8d96f40934
commit e36357d381
+3 -2
View File
@@ -177,8 +177,9 @@ namespace IfcGeom {
TopLoc_Location loc;
Handle_Poly_Triangulation tri = BRep_Tool::Triangulation(face,loc);
if ( ! tri.IsNull() ) {
if (tri.IsNull()) {
Logger::Message(Logger::LOG_ERROR, "Triangulation missing for face");
} else {
// A 3x3 matrix to rotate the vertex normals
const gp_Mat rotation_matrix = trsf.VectorialPart();