diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh_planar_patches.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh_planar_patches.h index b83f82c661c..e7ebaa88f54 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh_planar_patches.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh_planar_patches.h @@ -284,9 +284,9 @@ bool is_target_vertex_a_corner(halfedge_descriptor h, // (for example when there is a tangency between surfaces and is shared) if (h2 == graph_traits::null_halfedge()) return true; - const Point_3& p = get(vpm, source(h, tm)); - const Point_3& q = get(vpm, target(h, tm)); - const Point_3& r = get(vpm, source(h2, tm)); + const Point_3 p = get(vpm, source(h, tm)); + const Point_3 q = get(vpm, target(h, tm)); + const Point_3 r = get(vpm, source(h2, tm)); if (coplanar_cos_threshold==-1) return !collinear(p, q, r);