From bc3999f47014a74bb1442e7be663d80fc322eb12 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 7 Aug 2017 10:09:04 +0200 Subject: [PATCH] More warning fixes --- .../include/CGAL/regularize_planes.h | 5 +++++ .../Point_set_shape_detection_3/test_regularization.cpp | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Point_set_shape_detection_3/include/CGAL/regularize_planes.h b/Point_set_shape_detection_3/include/CGAL/regularize_planes.h index ff5e1e613a4..1f2f6900a80 100644 --- a/Point_set_shape_detection_3/include/CGAL/regularize_planes.h +++ b/Point_set_shape_detection_3/include/CGAL/regularize_planes.h @@ -59,6 +59,11 @@ struct Plane_cluster typename Traits::FT cosangle_symmetry; typename Traits::FT area; typename Traits::FT cosangle_centroid; + + Plane_cluster() : normal (typename Traits::FT(0.), + typename Traits::FT(0.), + typename Traits::FT(1.)) + { } }; diff --git a/Point_set_shape_detection_3/test/Point_set_shape_detection_3/test_regularization.cpp b/Point_set_shape_detection_3/test/Point_set_shape_detection_3/test_regularization.cpp index aef2e8bc985..ec6f902e616 100644 --- a/Point_set_shape_detection_3/test/Point_set_shape_detection_3/test_regularization.cpp +++ b/Point_set_shape_detection_3/test/Point_set_shape_detection_3/test_regularization.cpp @@ -162,7 +162,7 @@ int main() std::vector before = get_ransac_planes(ransac); // Test regularization - typename Efficient_ransac::Plane_range planes = ransac.planes(); + Efficient_ransac::Plane_range planes = ransac.planes(); CGAL::regularize_planes (points, Point_map(), planes, @@ -208,7 +208,7 @@ int main() std::vector before = get_ransac_planes(ransac); - typename Efficient_ransac::Plane_range planes = ransac.planes(); + Efficient_ransac::Plane_range planes = ransac.planes(); CGAL::regularize_planes (points, Point_map(), planes, @@ -253,7 +253,7 @@ int main() std::vector before = get_ransac_planes(ransac); - typename Efficient_ransac::Plane_range planes = ransac.planes(); + Efficient_ransac::Plane_range planes = ransac.planes(); CGAL::regularize_planes (points, Point_map(), planes, @@ -302,7 +302,7 @@ int main() check_ransac_size (ransac, 2); std::vector before = get_ransac_planes(ransac); - typename Efficient_ransac::Plane_range planes = ransac.planes(); + Efficient_ransac::Plane_range planes = ransac.planes(); CGAL::regularize_planes (points, Point_map(), planes,