is_valid level 3

This commit is contained in:
Thomas Krijnen
2020-07-23 12:14:20 +02:00
parent 6d59e6ea90
commit 549cc76a2c
+3 -1
View File
@@ -96,7 +96,9 @@ CGAL::Nef_polyhedron_3<Kernel_> ifcopenshell::geometry::utils::create_nef_polyhe
}
CGAL::Nef_polyhedron_3<Kernel_> ifcopenshell::geometry::utils::create_nef_polyhedron(CGAL::Polyhedron_3<Kernel_> &polyhedron) {
if (polyhedron.is_valid() && polyhedron.is_closed()) {
// @todo needed?
polyhedron.normalize_border();
if (polyhedron.is_valid(false, 3) && polyhedron.is_closed()) {
// @todo is it necessary to triangulat?
CGAL::Polygon_mesh_processing::triangulate_faces(polyhedron);
CGAL::Nef_polyhedron_3<Kernel_> nef_polyhedron;