diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp index 9a95dfc67bf..64ffff89444 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp @@ -787,7 +787,28 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type, return item->polyhedron(); }); - if(bounding_polyhedron != nullptr) + if(!incident_sub.empty()) + { + thread = cgal_code_mesh_3( + polyhedrons, + incident_sub, + item_name, + angle, + facets_sizing, + facets_min_sizing, + approx, + tets_sizing, + tets_min_sizing, + edges_sizing, + edges_min_sizing, + tets_shape, + protect_features, + protect_borders, + sharp_edges_angle_bound, + manifold, + mesh_type == Mesh_type::SURFACE_ONLY); + } + else { thread = cgal_code_mesh_3( polyhedrons, @@ -809,27 +830,6 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type, manifold, mesh_type == Mesh_type::SURFACE_ONLY); } - else if(!incident_sub.empty()) - { - thread = cgal_code_mesh_3( - polyhedrons, - incident_sub, - item_name, - angle, - facets_sizing, - facets_min_sizing, - approx, - tets_sizing, - tets_min_sizing, - edges_sizing, - edges_min_sizing, - tets_shape, - protect_features, - protect_borders, - sharp_edges_angle_bound, - manifold, - mesh_type == Mesh_type::SURFACE_ONLY); - } break; }//end case POLYHEDRAL_MESH_ITEMS // Implicit functions