From 8a6b86b9ae48cdf73bfba7dfd6775f0a243ff984 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 11 Jun 2024 08:18:34 +0100 Subject: [PATCH] PMP: Change the string of the property --- .../Polygon_mesh_processing/compute_normals_example.cpp | 4 ++-- .../examples/Polygon_mesh_processing/extrude.cpp | 2 +- .../test/Polygon_mesh_processing/pmp_compute_normals_test.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/compute_normals_example.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/compute_normals_example.cpp index c7e1fbdb21c..039c4320c84 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/compute_normals_example.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/compute_normals_example.cpp @@ -29,8 +29,8 @@ int main(int argc, char* argv[]) return 1; } - auto vnormals = mesh.add_property_map("v:normals", CGAL::NULL_VECTOR).first; - auto fnormals = mesh.add_property_map("f:normals", CGAL::NULL_VECTOR).first; + auto vnormals = mesh.add_property_map("v:normal", CGAL::NULL_VECTOR).first; + auto fnormals = mesh.add_property_map("f:normal", CGAL::NULL_VECTOR).first; PMP::compute_normals(mesh, vnormals, fnormals); diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/extrude.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/extrude.cpp index aa7c2bd40ea..a6a76cc84cd 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/extrude.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/extrude.cpp @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) CGAL::IO::read_polygon_mesh(filename, in); - VNMap vnormals = in.template add_property_map("v:normals", CGAL::NULL_VECTOR).first; + VNMap vnormals = in.template add_property_map("v:normal", CGAL::NULL_VECTOR).first; CGAL::Polygon_mesh_processing::compute_vertex_normals(in, vnormals); Bottom bottom(get(CGAL::vertex_point,out), vnormals, vlen); diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/pmp_compute_normals_test.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/pmp_compute_normals_test.cpp index f0dc91bd25e..cbaee09453f 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/pmp_compute_normals_test.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/pmp_compute_normals_test.cpp @@ -142,9 +142,9 @@ void test_SM(const std::string file_name) } typename SM::template Property_map vnormals; - vnormals = mesh.template add_property_map("v:normals", CGAL::NULL_VECTOR).first; + vnormals = mesh.template add_property_map("v:normal", CGAL::NULL_VECTOR).first; typename SM::template Property_map fnormals; - fnormals = mesh.template add_property_map("f:normals", CGAL::NULL_VECTOR).first; + fnormals = mesh.template add_property_map("f:normal", CGAL::NULL_VECTOR).first; test(mesh, vnormals, fnormals); }