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