mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
is_valid level 3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user