diff --git a/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation.h b/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation.h index 9679419db12..35ee486a392 100644 --- a/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation.h +++ b/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation.h @@ -317,7 +317,7 @@ void vsa_approximate( typedef CGAL::PlaneProxy PlaneProxy; typedef CGAL::L21Metric L21Metric; - typedef CGAL::L21ProxyFitting L21ProxyFitting; + typedef CGAL::L21ProxyFitting L21ProxyFitting; typedef CGAL::L21ApproximationTrait L21ApproximationTrait; VertexPointMap point_pmap = get(boost::vertex_point, const_cast(tm)); @@ -387,7 +387,7 @@ void vsa_extract( typedef CGAL::PlaneProxy PlaneProxy; typedef CGAL::L21Metric L21Metric; - typedef CGAL::L21ProxyFitting L21ProxyFitting; + typedef CGAL::L21ProxyFitting L21ProxyFitting; typedef CGAL::PlaneFitting PlaneFitting; typedef CGAL::L21ApproximationTrait L21ApproximationTrait; @@ -472,7 +472,7 @@ void vsa_approximate_and_extract( typedef CGAL::PlaneProxy PlaneProxy; typedef CGAL::L21Metric L21Metric; - typedef CGAL::L21ProxyFitting L21ProxyFitting; + typedef CGAL::L21ProxyFitting L21ProxyFitting; typedef CGAL::PlaneFitting PlaneFitting; typedef CGAL::L21ApproximationTrait L21ApproximationTrait; diff --git a/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation_traits.h b/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation_traits.h index 0585f9aca81..202883db974 100644 --- a/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation_traits.h +++ b/Surface_mesh_approximation/include/CGAL/vsa_mesh_approximation_traits.h @@ -11,7 +11,7 @@ namespace CGAL { template - struct PlaneProxy +struct PlaneProxy { typedef Traits GeomTraits; typedef typename GeomTraits::Point_3 Point_3; @@ -27,7 +27,7 @@ template - struct L21Metric +struct L21Metric { L21Metric(const FacetNormalMap &normal_pmap, const FacetAreaMap &area_pmap) : normal_pmap(normal_pmap), @@ -59,10 +59,9 @@ template - struct L21ProxyFitting +struct L21ProxyFitting { L21ProxyFitting(const FacetNormalMap &normal_pmap, const FacetAreaMap &area_pmap) : normal_pmap(normal_pmap), area_pmap(area_pmap) { @@ -110,7 +109,7 @@ template::type, typename GeomTraits = typename TriangleMesh::Traits> - struct PlaneFitting +struct PlaneFitting { PlaneFitting(const TriangleMesh &_mesh, const VertexPointMap &_point_pmap) : mesh(_mesh), point_pmap(_point_pmap) { @@ -181,7 +180,7 @@ template - struct L21ApproximationTrait +struct L21ApproximationTrait { typedef typename PlaneProxy::GeomTraits GeomTraits; typedef PlaneProxy Proxy; @@ -220,7 +219,7 @@ template - struct L2Metric +struct L2Metric { L2Metric(const TriangleMesh &_mesh, const FacetAreaMap &_area_pmap, @@ -254,17 +253,14 @@ template - struct L2ProxyFitting +struct L2ProxyFitting { typedef typename PlaneProxy::GeomTraits GeomTraits; - typedef typename GeomTraits::FT FT; typedef typename GeomTraits::Point_3 Point_3; typedef typename GeomTraits::Triangle_3 Triangle_3; - typedef typename GeomTraits::Construct_scaled_vector_3 Construct_scaled_vector_3; typedef typename boost::graph_traits::halfedge_descriptor halfedge_descriptor; L2ProxyFitting(const TriangleMesh &_mesh, const VertexPointMap &_point_pmap) @@ -302,7 +298,7 @@ template::type, typename GeomTraits = typename TriangleMesh::Traits> - struct PCAPlaneFitting +struct PCAPlaneFitting { typedef typename GeomTraits::Point_3 Point_3; typedef typename GeomTraits::Plane_3 Plane_3; @@ -351,7 +347,7 @@ template - struct L2ApproximationTrait +struct L2ApproximationTrait { public: typedef typename PlaneProxy::GeomTraits GeomTraits; @@ -384,8 +380,6 @@ private: const VertexPointMap point_pmap; const FacetAreaMap area_pmap; }; - - } // end namespace CGAL #endif // CGAL_SURFACE_MESH_APPROXIMATION_VSA_TRAITS_H