mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +00:00
Log error about missing triangulation
This commit is contained in:
@@ -177,8 +177,9 @@ namespace IfcGeom {
|
|||||||
TopLoc_Location loc;
|
TopLoc_Location loc;
|
||||||
Handle_Poly_Triangulation tri = BRep_Tool::Triangulation(face,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
|
// A 3x3 matrix to rotate the vertex normals
|
||||||
const gp_Mat rotation_matrix = trsf.VectorialPart();
|
const gp_Mat rotation_matrix = trsf.VectorialPart();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user