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,12 +787,11 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type,
|
||||||
return item->polyhedron();
|
return item->polyhedron();
|
||||||
});
|
});
|
||||||
|
|
||||||
if(bounding_polyhedron != nullptr)
|
if(!incident_sub.empty())
|
||||||
{
|
{
|
||||||
thread = cgal_code_mesh_3(
|
thread = cgal_code_mesh_3(
|
||||||
polyhedrons,
|
polyhedrons,
|
||||||
(polylines_item == nullptr) ? plc : polylines_item->polylines,
|
incident_sub,
|
||||||
bounding_polyhedron,
|
|
||||||
item_name,
|
item_name,
|
||||||
angle,
|
angle,
|
||||||
facets_sizing,
|
facets_sizing,
|
||||||
|
|
@ -809,11 +808,12 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type,
|
||||||
manifold,
|
manifold,
|
||||||
mesh_type == Mesh_type::SURFACE_ONLY);
|
mesh_type == Mesh_type::SURFACE_ONLY);
|
||||||
}
|
}
|
||||||
else if(!incident_sub.empty())
|
else
|
||||||
{
|
{
|
||||||
thread = cgal_code_mesh_3(
|
thread = cgal_code_mesh_3(
|
||||||
polyhedrons,
|
polyhedrons,
|
||||||
incident_sub,
|
(polylines_item == nullptr) ? plc : polylines_item->polylines,
|
||||||
|
bounding_polyhedron,
|
||||||
item_name,
|
item_name,
|
||||||
angle,
|
angle,
|
||||||
facets_sizing,
|
facets_sizing,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue