From 4279a734bfb71821609ee14ea5bf33bcc90831cf Mon Sep 17 00:00:00 2001 From: hoskillua <47090776+hoskillua@users.noreply.github.com> Date: Mon, 27 Mar 2023 19:35:31 +0200 Subject: [PATCH] minor linting changing --- .../interpolated_corrected_curvatures_PH.cpp | 16 ++++------ .../interpolated_corrected_curvatures_SM.cpp | 31 +++++++++---------- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_PH.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_PH.cpp index ecf40b84082..0aa0c196d3f 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_PH.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_PH.cpp @@ -31,20 +31,16 @@ int main(int argc, char* argv[]) boost::property_map>::type mean_curvature_map = get(CGAL::dynamic_vertex_property_t(), polyhedron), Gaussian_curvature_map = get(CGAL::dynamic_vertex_property_t(), polyhedron); + boost::property_map>>::type - principal_curvatures_and_directions_map = get(CGAL::dynamic_vertex_property_t>(), polyhedron); + principal_curvatures_and_directions_map = + get(CGAL::dynamic_vertex_property_t>(), polyhedron); - PMP::interpolated_corrected_mean_curvature( - polyhedron, - mean_curvature_map); + PMP::interpolated_corrected_mean_curvature(polyhedron, mean_curvature_map); - PMP::interpolated_corrected_Gaussian_curvature( - polyhedron, - Gaussian_curvature_map); + PMP::interpolated_corrected_Gaussian_curvature(polyhedron, Gaussian_curvature_map); - PMP::interpolated_corrected_principal_curvatures_and_directions( - polyhedron, - principal_curvatures_and_directions_map); + PMP::interpolated_corrected_principal_curvatures_and_directions(polyhedron, principal_curvatures_and_directions_map); // uncomment this to compute a curvature while specifying named parameters // Example: an expansion ball radius of 0.5 and a vertex normals map (does not have to depend on positions) diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_SM.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_SM.cpp index ab985e5068d..d75ab14f698 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_SM.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/interpolated_corrected_curvatures_SM.cpp @@ -29,17 +29,23 @@ int main(int argc, char* argv[]) // creating and tying surface mesh property maps for curvatures (with defaults = 0) bool created = false; - Surface_Mesh::Property_map mean_curvature_map, Gaussian_curvature_map; - boost::tie(mean_curvature_map, created) = smesh.add_property_map("v:mean_curvature_map", 0); + Surface_Mesh::Property_map + mean_curvature_map, Gaussian_curvature_map; + + boost::tie(mean_curvature_map, created) = + smesh.add_property_map("v:mean_curvature_map", 0); assert(created); - boost::tie(Gaussian_curvature_map, created) = smesh.add_property_map("v:Gaussian_curvature_map", 0); + boost::tie(Gaussian_curvature_map, created) = + smesh.add_property_map("v:Gaussian_curvature_map", 0); assert(created); // we use a tuple of 2 scalar values and 2 vectors for principal curvatures and directions - Surface_Mesh::Property_map> principal_curvatures_and_directions_map; + Surface_Mesh::Property_map> + principal_curvatures_and_directions_map; - boost::tie(principal_curvatures_and_directions_map, created) = smesh.add_property_map> + boost::tie(principal_curvatures_and_directions_map, created) = + smesh.add_property_map> ("v:principal_curvatures_and_directions_map", { 0, 0, Epic_kernel::Vector_3(0,0,0), Epic_kernel::Vector_3(0,0,0) }); @@ -48,20 +54,11 @@ int main(int argc, char* argv[]) // user can call these fucntions to compute a specfic curvature type on each vertex. // (Note: if no ball radius is specified, the measure expansion of each vertex happens by // summing measures on faces adjacent to each vertex.) - PMP::interpolated_corrected_mean_curvature( - smesh, - mean_curvature_map - ); + PMP::interpolated_corrected_mean_curvature(smesh, mean_curvature_map); - PMP::interpolated_corrected_Gaussian_curvature( - smesh, - Gaussian_curvature_map - ); + PMP::interpolated_corrected_Gaussian_curvature(smesh, Gaussian_curvature_map); - PMP::interpolated_corrected_principal_curvatures_and_directions( - smesh, - principal_curvatures_and_directions_map - ); + PMP::interpolated_corrected_principal_curvatures_and_directions(smesh, principal_curvatures_and_directions_map); // uncomment this to compute a curvature while specifying named parameters // Example: an expansion ball radius of 0.5 and a vertex normals map (does not have to depend on positions)