mirror of https://github.com/CGAL/cgal
Merge pull request #7549 from afabri/Polyhedron-fix_surface_remeshing-GF
Polyhedron demo: Fix remeshing of a surface
This commit is contained in:
commit
2e8ce4006d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue