diff --git a/Polygon_mesh_processing/doc/Polygon_mesh_processing/PackageDescription.txt b/Polygon_mesh_processing/doc/Polygon_mesh_processing/PackageDescription.txt index c25cfb8490d..d0cab92d6a8 100644 --- a/Polygon_mesh_processing/doc/Polygon_mesh_processing/PackageDescription.txt +++ b/Polygon_mesh_processing/doc/Polygon_mesh_processing/PackageDescription.txt @@ -16,7 +16,7 @@ /// Functions to triangulate faces, and to refine and fair regions of a polygon mesh. /// \ingroup PkgPolygonMeshProcessingRef -/// \defgroup PMP_corrected_curvatures_grp Corrected Curvature Computation +/// \defgroup PMP_corrected_curvatures_grp Corrected Curvature Computation /// Functions to compute the corrected curvatures of a polygon mesh. /// \ingroup PkgPolygonMeshProcessingRef diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures.cpp index 4480366bc2b..acf4591fe39 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures.cpp @@ -47,6 +47,6 @@ int main(int argc, char* argv[]) ); for (face_descriptor f: g1.faces()) - std::cout << f.idx() << ": HC = " << get(mean_curvature_map, f) + std::cout << f.idx() << ": HC = " << get(mean_curvature_map, f) << ", GC = " << get(gaussian_curvature_map, f) << "\n"; } diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/Curvatures/interpolated_corrected_curvature_measures.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/Curvatures/interpolated_corrected_curvature_measures.h index a3c3d9f16e2..f618533d2bc 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/Curvatures/interpolated_corrected_curvature_measures.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/Curvatures/interpolated_corrected_curvature_measures.h @@ -59,7 +59,7 @@ enum Curvature_measure_index { * @param mu_i an enum for choosing between computing the area measure, * the mean curvature measure, or the gaussian curvature measure. * -* @return a scalar of type `GT::FT`. +* @return a scalar of type `GT::FT`. * This is the value of the interpolated corrected measure of the given triangle. * * @see `interpolated_corrected_measure_face()` @@ -69,9 +69,9 @@ template typename GT::FT interpolated_corrected_measure_triangle(const typename GT::Vector_3 x0, const typename GT::Vector_3 x1, const typename GT::Vector_3 x2, - const typename GT::Vector_3 u0, - const typename GT::Vector_3 u1, - const typename GT::Vector_3 u2, + const typename GT::Vector_3 u0, + const typename GT::Vector_3 u1, + const typename GT::Vector_3 u2, const Curvature_measure_index mu_i) { switch (mu_i) @@ -102,8 +102,8 @@ typename GT::FT interpolated_corrected_measure_triangle(const typename GT::Vecto * \ingroup PMP_corrected_curvatures_grp * * computes the interpolated corrected measure of specific quad -* Note that the vertices 0 to 3 are ordered like this \n -* v0 _ v1 \n +* Note that the vertices 0 to 3 are ordered like this \n +* v0 _ v1 \n * v2 |_| v3 * * @tparam GT is the geometric traits class. @@ -119,7 +119,7 @@ typename GT::FT interpolated_corrected_measure_triangle(const typename GT::Vecto * @param mu_i an enum for choosing between computing the area measure, * the mean curvature measure, or the gaussian curvature measure. * -* @return a scalar of type `GT::FT`. +* @return a scalar of type `GT::FT`. * This is the value of the interpolated corrected measure of the given triangle. * * @see `interpolated_corrected_measure_face()` @@ -138,7 +138,7 @@ typename GT::FT interpolated_corrected_measure_quad(const typename GT::Vector_3 { // x0 _ x1 // x2 |_| x3 - + switch (mu_i) { case MU0_AREA_MEASURE: @@ -193,7 +193,7 @@ typename GT::FT interpolated_corrected_measure_quad(const typename GT::Vector_3 * @param mu_i an enum for choosing between computing the area measure, * the mean curvature measure, or the gaussian curvature measure. * -* @return a scalar of type `GT::FT`. +* @return a scalar of type `GT::FT`. * This is the value of the interpolated corrected measure of the given face. * * @see `interpolated_corrected_measure_triangle()` @@ -231,7 +231,7 @@ typename GT::FT interpolated_corrected_measure_face(const std::vector::%vertex_descriptor` * as key type and `%Point_3` as value type} * \cgalParamDefault{`boost::get(CGAL::vertex_point, pmesh)`} @@ -275,7 +275,7 @@ typename GT::FT interpolated_corrected_measure_face(const std::vector::%vertex_descriptor` * as key type and `%Vector_3` as value type} * \cgalParamDefault{`get(dynamic_vertex_property_t(), pmesh)`} @@ -405,7 +405,7 @@ template::face_descriptor face_descriptor; typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; - const typename GetGeomTraits::type::FT + const typename GetGeomTraits::type::FT r = choose_parameter(get_parameter(np, internal_np::ball_radius), 0.01); if (r < 0.000001) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp index 88d86966f1d..13f704774e3 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp @@ -785,13 +785,13 @@ private Q_SLOTS: void displayInterpolatedCurvatureMeasure(Scene_surface_mesh_item* item, PMP::Curvature_measure_index mu_index) { - std::string tied_string = (mu_index == PMP::MU1_MEAN_CURVATURE_MEASURE)? + std::string tied_string = (mu_index == PMP::MU1_MEAN_CURVATURE_MEASURE)? "f:interpolated_corrected_mean_curvature": "f:interpolated_corrected_gaussian_curvature"; SMesh& smesh = *item->face_graph(); //compute once and store the value per face bool non_init; SMesh::Property_map mu_i_map; - std::tie(mu_i_map, non_init) = + std::tie(mu_i_map, non_init) = smesh.add_property_map(tied_string, 0); if (non_init) {