1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: specify Kernel
The CGAL API was buggy and has been fixed in CGAL 5.2.
The change is compatible with previous releases of CGAL too.
Author: Sébastien Loriot <sebastien.loriot@cgal.org>
Origin: https://gitlab.com/Oslandia/SFCGAL/-/commit/d07ed747e7f06acb22d5891ece789b331cff14c5
Bug: https://gitlab.com/Oslandia/SFCGAL/-/merge_requests/237
Bug-Debian: https://bugs.debian.org/978173
--- a/src/detail/generator/building.cpp
+++ b/src/detail/generator/building.cpp
@@ -100,7 +100,12 @@ std::unique_ptr< Geometry > building(
// fix orientation
algorithm::makeValidOrientation( polygon ) ;
- boost::shared_ptr< Straight_skeleton_2 > skeleton = CGAL::create_interior_straight_skeleton_2( polygon ) ;
+ boost::shared_ptr< Straight_skeleton_2 > skeleton =
+ create_interior_straight_skeleton_2(polygon.outer_boundary().vertices_begin()
+ ,polygon.outer_boundary().vertices_end()
+ ,polygon.holes_begin()
+ ,polygon.holes_end()
+ ,Kernel());
std::unique_ptr< PolyhedralSurface > shell( new PolyhedralSurface );
// bottom part
|