From bc9e01a08da6516cf49cb1abc2d5b3ba547bfcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 14 Feb 2023 00:19:22 +0100 Subject: [PATCH] Misc minor fixes --- .../exterior_offset_of_multiple_polygons_with_holes.cpp | 3 ++- .../include/CGAL/Straight_skeleton_builder_traits_2.h | 4 ++-- Straight_skeleton_2/include/CGAL/create_straight_skeleton_2.h | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Straight_skeleton_2/examples/Straight_skeleton_2/exterior_offset_of_multiple_polygons_with_holes.cpp b/Straight_skeleton_2/examples/Straight_skeleton_2/exterior_offset_of_multiple_polygons_with_holes.cpp index 92591eaa785..a3655becfe6 100644 --- a/Straight_skeleton_2/examples/Straight_skeleton_2/exterior_offset_of_multiple_polygons_with_holes.cpp +++ b/Straight_skeleton_2/examples/Straight_skeleton_2/exterior_offset_of_multiple_polygons_with_holes.cpp @@ -36,7 +36,7 @@ exterior_offset_of_disjoint_polygons_with_holes(double lOffset, const std::vecto if ( margin ) { - double lm = CGAL::to_double(*margin); + double lm = *margin; CGAL::Bbox_2 bbox = bbox_2(outer_vertices.begin(), outer_vertices.end()); double fxmin = bbox.xmin() - lm ; @@ -110,6 +110,7 @@ int main() double lOffset = 1.1 ; PolygonWithHolesPtrVector offset_poly_with_holes = exterior_offset_of_disjoint_polygons_with_holes(lOffset,pwhs); + std::cout << offset_poly_with_holes.size() << " offset polygons" << std::endl; for (PolygonWithHolesPtr ptr : offset_poly_with_holes) CGAL::draw(*ptr); diff --git a/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_traits_2.h b/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_traits_2.h index 67c3ee429d9..2be2422c817 100644 --- a/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_traits_2.h +++ b/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_traits_2.h @@ -927,8 +927,8 @@ public: } public: - // TODO: as soon as an exact value we could refine the interval one. Not sure if it is worth it - Exact mExact_traits ; + // @todo as soon as an exact value we could refine the interval one. Not sure if it is worth it + Straight_skeleton_builder_traits_2_impl mExact_traits ; // Below is only used for the cached variables not the functor types Straight_skeleton_builder_traits_2_impl mApproximate_traits ; diff --git a/Straight_skeleton_2/include/CGAL/create_straight_skeleton_2.h b/Straight_skeleton_2/include/CGAL/create_straight_skeleton_2.h index ab985800ffa..dffeffc1b18 100644 --- a/Straight_skeleton_2/include/CGAL/create_straight_skeleton_2.h +++ b/Straight_skeleton_2/include/CGAL/create_straight_skeleton_2.h @@ -15,11 +15,13 @@ #include #include +#include #include #include #include #include +#include #include #include