Build all volumes when converting between nef and poly

This commit is contained in:
Thomas Krijnen
2026-06-23 20:26:16 +02:00
parent c592018b3f
commit 13681cdf9b
2 changed files with 12 additions and 5 deletions
@@ -337,7 +337,7 @@ const cgal_shape_t& ifcopenshell::geometry::CgalShape::poly() const {
void ifcopenshell::geometry::CgalShape::to_poly() const {
if (!shape_) {
cgal_shape_t poly;
convert_to_polyhedron(*nef_, poly);
convert_to_polyhedron(*nef_, poly, std::numeric_limits<std::size_t>::max());
if (poly.size_of_vertices() > 0) {
// @todo why is this necessary? we have the mark of the volumes?
CGAL::Polygon_mesh_processing::orient_to_bound_a_volume(poly);