Misc minor fixes

This commit is contained in:
Mael Rouxel-Labbé 2023-02-14 00:19:22 +01:00
parent 6a44bf6244
commit bc9e01a08d
3 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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<Tag_false, EK> mExact_traits ;
// Below is only used for the cached variables not the functor types
Straight_skeleton_builder_traits_2_impl<Tag_false, FK> mApproximate_traits ;

View File

@ -15,11 +15,13 @@
#include <CGAL/license/Straight_skeleton_2.h>
#include <CGAL/compute_outer_frame_margin.h>
#include <CGAL/Straight_skeleton_2.h>
#include <CGAL/Straight_skeleton_builder_2.h>
#include <CGAL/Straight_skeleton_2/Polygon_iterators.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Kernel_traits.h>
#include <CGAL/Polygon_2.h>
#include <boost/optional/optional.hpp>
#include <boost/shared_ptr.hpp>