CGAL 4.5 - 2D Minkowski Sums
|
#include <CGAL/Small_side_angle_bisector_decomposition_2.h>
The Small_side_angle_bisector_decomposition_2
class implements a simple yet efficient heuristic for decomposing an input polygon into convex sub-polygons. It is based on the algorithm suggested by Flato and Halperin [3], but without introducing Steiner points. The algorithm operates in two major steps. In the first step, it tries to subdivide the polygon by connect two reflex vertices with an edge. When this is not possible any more, it eliminates the reflex vertices one by one by connecting them to other convex vertices, such that the new edge best approximates the angle bisector of the reflex vertex. The algorithm operates in \( O(n^2)\) time an takes \( O(n)\) space at the worst case, where \( n\) is the size of the input polygon.
The Polygon_2
type defined by the class is simply Polygon_2<Kernel,Container>
. The Container
parameter is by default std::vector<typename Kernel::Point_2>
.