From e36357d38196532f44d4a0b875b4f13afb83521c Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 5 Nov 2019 15:47:02 +0100 Subject: [PATCH] Log error about missing triangulation --- src/ifcgeom/IfcGeomRepresentation.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomRepresentation.h b/src/ifcgeom/IfcGeomRepresentation.h index cf5401704f..f231444996 100644 --- a/src/ifcgeom/IfcGeomRepresentation.h +++ b/src/ifcgeom/IfcGeomRepresentation.h @@ -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();