Merge pull request #5529 from maxGimeno/Demo-Fixes_for_5_1-maxGimeno

Polyhedron_demo: Fix Affine_transform_plugin crash
This commit is contained in:
Laurent Rineau 2021-03-24 14:59:23 +01:00
commit f650c2f467
1 changed files with 2 additions and 1 deletions

View File

@ -570,7 +570,8 @@ void Polyhedron_demo_affine_transform_plugin::end(){
if(transform_item) if(transform_item)
{ {
CGAL::qglviewer::Vec c = transform_item->center(); 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<FaceGraph,CGAL::vertex_point_t>::type VPmap; typedef boost::property_map<FaceGraph,CGAL::vertex_point_t>::type VPmap;
VPmap vpmap = get(CGAL::vertex_point, *new_sm); VPmap vpmap = get(CGAL::vertex_point, *new_sm);