From 7d3406a462c0eb1413cd7cd4819bb5e74e0cc461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 23 Feb 2024 16:19:19 +0100 Subject: [PATCH] Misc minor changes --- .../contouring_implicit_data.cpp | 2 +- .../internal/dual_contouring_functors.h | 1 - .../partition_traits_Cartesian_grid.h | 22 +++++++++---------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Isosurfacing_3/examples/Isosurfacing_3/contouring_implicit_data.cpp b/Isosurfacing_3/examples/Isosurfacing_3/contouring_implicit_data.cpp index b23ddabcead..0e315292b31 100644 --- a/Isosurfacing_3/examples/Isosurfacing_3/contouring_implicit_data.cpp +++ b/Isosurfacing_3/examples/Isosurfacing_3/contouring_implicit_data.cpp @@ -11,8 +11,8 @@ #include #include -#include #include +#include using Kernel = CGAL::Simple_cartesian; using FT = typename Kernel::FT; diff --git a/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/dual_contouring_functors.h b/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/dual_contouring_functors.h index 099e01552d4..a696bfeba45 100644 --- a/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/dual_contouring_functors.h +++ b/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/dual_contouring_functors.h @@ -376,7 +376,6 @@ public: out_edge_intersections << "2 " << x_coord(p) << " " << y_coord(p) << " " << z_coord(p) << " " << x_coord(p) + x_coord(g) << " " << y_coord(p) + y_coord(g) << " " << z_coord(p) + z_coord(g) << std::endl; } - #endif if(!do_not_triangulate_faces) diff --git a/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/partition_traits_Cartesian_grid.h b/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/partition_traits_Cartesian_grid.h index 8fe7c1787ef..8786c8c6cb6 100644 --- a/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/partition_traits_Cartesian_grid.h +++ b/Isosurfacing_3/include/CGAL/Isosurfacing_3/internal/partition_traits_Cartesian_grid.h @@ -61,14 +61,14 @@ struct partition_traits > using Cell_edges = std::array; static decltype(auto) /*Point_3*/ point(const Vertex_descriptor& v, - const Self& g) + const Grid& g) { return g.point(v[0], v[1], v[2]); } // returns a container with the two vertices incident to edge e static Vertices_incident_to_edge incident_vertices(const Edge_descriptor& e, - const Self&) + const Grid&) { Vertices_incident_to_edge ev; ev[0] = { e[0], e[1], e[2] }; // start vertex @@ -79,7 +79,7 @@ struct partition_traits > // returns a container with all cells incident to edge e static Cells_incident_to_edge incident_cells(const Edge_descriptor& e, - const Self&) + const Grid&) { // lookup the neighbor cells relative to the edge const int local = internal::Cube_table::edge_store_index[e[3]]; @@ -99,7 +99,7 @@ struct partition_traits > // returns a container with all vertices of cell c static Cell_vertices cell_vertices(const Cell_descriptor& c, - const Self&) + const Grid&) { Cell_vertices cv; for(std::size_t i=0; i > // returns a container with all edges of cell c static Cell_edges cell_edges(const Cell_descriptor& c, - const Self&) + const Grid&) { Cell_edges ce; for(std::size_t i=0; i > // iterates sequentially over all vertices v calling f(v) on every one template static void for_each_vertex(Functor& f, - const Self& g, + const Grid& g, const CGAL::Sequential_tag) { for(std::size_t i=0; i > // iterates sequentially over all edges e calling f(e) on every one template static void for_each_edge(Functor& f, - const Self& g, + const Grid& g, const CGAL::Sequential_tag) { for(std::size_t i=0; i > // iterates sequentially over all cells c calling f(c) on every one template static void for_each_cell(Functor& f, - const Self& g, + const Grid& g, const CGAL::Sequential_tag) { for(std::size_t i=0; i > // iterates in parallel over all vertices v calling f(v) on every one template static void for_each_vertex(Functor& f, - const Self& g, + const Grid& g, const CGAL::Parallel_tag) { const std::size_t sj = g.ydim(); @@ -201,7 +201,7 @@ struct partition_traits > // iterates in parallel over all edges e calling f(e) on every one template static void for_each_edge(Functor& f, - const Self& g, + const Grid& g, const CGAL::Parallel_tag) { const std::size_t sj = g.ydim(); @@ -228,7 +228,7 @@ struct partition_traits > // iterates in parallel over all cells c calling f(c) on every one template static void for_each_cell(Functor& f, - const Self& g, + const Grid& g, const CGAL::Parallel_tag) { const std::size_t sj = g.ydim();