From fdcd84b0311d31d06d6994f90f5811c5008055f9 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 16 Mar 2021 14:18:05 +0100 Subject: [PATCH] Use copy_face_graph to duplicate the surface_mesh in affine_transformation to avoid problems related to the extra properties (it may cause a crash in the cas eof the face patch_id map, for example) --- .../demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp index 75b996dda51..bd6ecc28005 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp @@ -570,7 +570,8 @@ void Polyhedron_demo_affine_transform_plugin::end(){ if(transform_item) { CGAL::qglviewer::Vec c = transform_item->center(); - FaceGraph* new_sm = new FaceGraph(*transform_item->getFaceGraph()); + FaceGraph* new_sm = new FaceGraph(); + CGAL::copy_face_graph(*transform_item->getFaceGraph(), *new_sm); typedef boost::property_map::type VPmap; VPmap vpmap = get(CGAL::vertex_point, *new_sm);