Skip to content

Commit

Permalink
Merge pull request #7549 from afabri/Polyhedron-fix_surface_remeshing-GF
Browse files Browse the repository at this point in the history
Polyhedron demo: Fix remeshing of a surface
  • Loading branch information
lrineau committed Jul 5, 2023
2 parents c8aae0c + be5a44a commit 2e8ce40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,12 +787,11 @@ 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,
(polylines_item == nullptr) ? plc : polylines_item->polylines,
bounding_polyhedron,
incident_sub,
item_name,
angle,
facets_sizing,
Expand All @@ -809,11 +808,12 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type,
manifold,
mesh_type == Mesh_type::SURFACE_ONLY);
}
else if(!incident_sub.empty())
else
{
thread = cgal_code_mesh_3(
polyhedrons,
incident_sub,
(polylines_item == nullptr) ? plc : polylines_item->polylines,
bounding_polyhedron,
item_name,
angle,
facets_sizing,
Expand All @@ -829,7 +829,7 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type,
sharp_edges_angle_bound,
manifold,
mesh_type == Mesh_type::SURFACE_ONLY);
}
}
break;
}//end case POLYHEDRAL_MESH_ITEMS
// Implicit functions
Expand Down

0 comments on commit 2e8ce40

Please sign in to comment.