diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp index d484a9c019f..ec5dc749dd8 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp @@ -29,7 +29,8 @@ #include #include -#include +#include + #include @@ -207,14 +208,14 @@ public: /// \todo move this function into an include bool is_mesh_valid(Polyhedron *pMesh) { - if (!pMesh->is_closed()) + if (! CGAL::is_closed(*pMesh)) { QMessageBox msgBox; msgBox.setText("The mesh is not closed."); msgBox.exec(); return false; } - if (!pMesh->is_pure_triangle()) + if (! CGAL::is_triangle_mesh(*pMesh)) { QMessageBox msgBox; msgBox.setText("The mesh is not a pure triangle mesh."); @@ -330,8 +331,8 @@ public: void update_meso_skeleton() { - CGAL::Polyhedron_copy_3 modifier(mcs->meso_skeleton()); - meso_skeleton->delegate(modifier); + clear(*meso_skeleton); + copy_face_graph(mcs->meso_skeleton(), *meso_skeleton); scene->item(contractedItemIndex)->invalidateOpenGLBuffers(); scene->itemChanged(contractedItemIndex); }