mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Use BRepMesh_IncrementalMesh rather than BRepMesh::Mesh. Thanks lorinma.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user