mirror of https://github.com/CGAL/cgal
a Polyhedron_3 does not have an internal pmap for face_patch_id_t
so the condition was always returning false for a Polyhedron we are inside the demo, so this condition can be safely removed
This commit is contained in:
parent
00def95173
commit
03e7265cef
|
|
@ -189,6 +189,9 @@ namespace internal {
|
|||
patch_ids_map = CGAL::internal::add_property(Face_property_tag("PMP_patch_id"), pmesh);
|
||||
if (do_init)
|
||||
{
|
||||
#ifdef CGAL_PMP_REMESHING_VERBOSE
|
||||
std::cout << "Compute connected components property map." << std::endl;
|
||||
#endif
|
||||
nb_cc
|
||||
= PMP::connected_components(pmesh,
|
||||
patch_ids_map,
|
||||
|
|
|
|||
|
|
@ -348,11 +348,9 @@ public Q_SLOTS:
|
|||
|
||||
reset_face_ids(pmesh);
|
||||
|
||||
Patch_id_pmap fpmap;
|
||||
Patch_id_pmap fpmap = get(CGAL::face_patch_id_t<int>(), pmesh);
|
||||
bool fpmap_valid = false;
|
||||
if(boost::graph_has_property<FaceGraph, CGAL::face_patch_id_t<int>()>::type::value)
|
||||
{
|
||||
fpmap = get(CGAL::face_patch_id_t<int>(), *poly_item->polyhedron());
|
||||
BOOST_FOREACH(face_descriptor f, faces(pmesh))
|
||||
{
|
||||
if (get(fpmap, f) != 1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue