From d2e6c0e9fa221c68e93fb392aea42b40eacf5322 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 10 Jun 2016 09:16:11 +0200 Subject: [PATCH] Fix - Use get() instead of [] operator to access the VertexPointMap. --- .../internal/Surface_mesh_segmentation/SDF_calculation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/SDF_calculation.h b/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/SDF_calculation.h index 1a4206b7181..9ff239f9d3d 100644 --- a/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/SDF_calculation.h +++ b/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/SDF_calculation.h @@ -153,11 +153,11 @@ public: for(it = faces(mesh).begin(), end = faces(mesh).end(); it!=end; it++) { halfedge_handle h = halfedge(*it, mesh); - Point_ref a(vertex_point_map[target(h, mesh)]); + Point_ref a(get(vertex_point_map, target(h, mesh))); h = next(h, mesh); - Point_ref b(vertex_point_map[target(h, mesh)]); + Point_ref b(get(vertex_point_map,target(h, mesh))); h = next(h, mesh); - Point_ref c(vertex_point_map[target(h, mesh)]); + Point_ref c(get(vertex_point_map, target(h, mesh))); bool test = collinear(a,b,c); if(!test) tree.insert(Primitive(it, mesh, vertex_point_map));