From f6f541ee3b677d754ed145f42fbdab9fe47b9bf6 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 16 Jan 2015 14:32:50 +0000 Subject: [PATCH] Use BRepMesh_IncrementalMesh rather than BRepMesh::Mesh. Thanks lorinma. --- src/ifcgeom/IfcGeomRepresentation.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/IfcGeomRepresentation.h b/src/ifcgeom/IfcGeomRepresentation.h index 2b46151265..f6d3e9900b 100644 --- a/src/ifcgeom/IfcGeomRepresentation.h +++ b/src/ifcgeom/IfcGeomRepresentation.h @@ -20,7 +20,7 @@ #ifndef IFCGEOMREPRESENTATION_H #define IFCGEOMREPRESENTATION_H -#include +#include #include #include @@ -143,8 +143,7 @@ namespace IfcGeom { // Triangulate the shape try { - // BRepTools::Clean(s); - BRepMesh::Mesh(s, settings().deflection_tolerance()); + BRepMesh_IncrementalMesh(s, settings().deflection_tolerance()); } catch(...) { // TODO: Catch outside