From c50823dc293b0d6eb9cc0e40be9bd39ad6da2169 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 10 Mar 2017 10:17:19 +0100 Subject: [PATCH] bglize --- .../PMP/Mean_curvature_flow_skeleton_plugin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); }