From 6fce467f0cb866d210784e3da287c10cfa96b222 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 31 Mar 2020 17:02:02 +0200 Subject: [PATCH] remove whitespaces --- .../Polygon_mesh_processing.txt | 2 +- .../orientation_pipeline_example.cpp | 30 +++++++++---------- .../orient_polygon_soup_extension.h | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt b/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt index 1506193e4da..486824fee88 100644 --- a/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt +++ b/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt @@ -618,7 +618,7 @@ Section \ref PMPOrientation. \cgalExample{Polygon_mesh_processing/orient_polygon_soup_example.cpp} -This example shows how to correctly repair and orient a soup to get a mesh from a reference : +This example shows how to correctly repair and orient a soup to get a mesh from a reference : \cgalExample{Polygon_mesh_processing/orientation_pipeline_example.cpp} diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/orientation_pipeline_example.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/orientation_pipeline_example.cpp index 44bba955ab3..aab205af422 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/orientation_pipeline_example.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/orientation_pipeline_example.cpp @@ -19,7 +19,7 @@ int main(int argc, char** argv) typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef K::Point_3 Point_3; typedef CGAL::Surface_mesh Mesh; - + std::vector points; std::vector< std::vector > polygons; Mesh ref1; @@ -47,7 +47,7 @@ int main(int argc, char** argv) std::size_t no; scanner.scan_facet( no, i); polygons[i].resize(no); - + for(std::size_t j = 0; j < no; ++j) { std::size_t id; scanner.scan_facet_vertex_index(id, i); @@ -63,51 +63,51 @@ int main(int argc, char** argv) } } input.close(); - + if(points.size() == 0 || polygons.size()==0) { std::cerr << "Error: input file not valid.\n"; return 1; } - + const char* reference_filename = argc<2 ? "data/blobby.off" : argv[2]; input.open(reference_filename); - + if ( !input || !(input >> ref1)){ std::cerr << "Error: can not read reference file.\n"; return 1; } input.close(); - + std::cout << "Is the soup a polygon mesh ? : " << CGAL::Polygon_mesh_processing::is_polygon_soup_a_polygon_mesh(polygons) << std::endl; - + CGAL::Polygon_mesh_processing::orient_triangle_soup_with_reference_triangle_mesh(ref1, points, polygons); - + std::cout << "And now ? : " << CGAL::Polygon_mesh_processing::is_polygon_soup_a_polygon_mesh(polygons) << std::endl; - + CGAL::Polygon_mesh_processing::duplicate_non_manifold_edges_in_polygon_soup(points, polygons); - + std::cout << "And now ? : " << CGAL::Polygon_mesh_processing::is_polygon_soup_a_polygon_mesh(polygons) << std::endl; - + Mesh poly; CGAL::Polygon_mesh_processing::polygon_soup_to_polygon_mesh( points, polygons, poly); - + typedef boost::property_map >::type Fccmap; Fccmap fccmap = get(CGAL::dynamic_face_property_t(), poly); - + std::cout<