Use BRepMesh_IncrementalMesh rather than BRepMesh::Mesh. Thanks lorinma.

This commit is contained in:
Thomas Krijnen
2015-01-16 14:32:50 +00:00
parent 09168d8910
commit f6f541ee3b
+2 -3
View File
@@ -20,7 +20,7 @@
#ifndef IFCGEOMREPRESENTATION_H #ifndef IFCGEOMREPRESENTATION_H
#define IFCGEOMREPRESENTATION_H #define IFCGEOMREPRESENTATION_H
#include <BRepMesh.hxx> #include <BRepMesh_IncrementalMesh.hxx>
#include <BRepGProp_Face.hxx> #include <BRepGProp_Face.hxx>
#include <Poly_Triangulation.hxx> #include <Poly_Triangulation.hxx>
@@ -143,8 +143,7 @@ namespace IfcGeom {
// Triangulate the shape // Triangulate the shape
try { try {
// BRepTools::Clean(s); BRepMesh_IncrementalMesh(s, settings().deflection_tolerance());
BRepMesh::Mesh(s, settings().deflection_tolerance());
} catch(...) { } catch(...) {
// TODO: Catch outside // TODO: Catch outside