CGAL 6.1.2 - 2D Minkowski Sums: CGAL::Greene_convex_decomposition_2< Kernel, Container > Class Template Reference

CGAL 6.1.2 - 2D Minkowski Sums

Loading...
Searching...
No Matches
List of all members | Public Types
CGAL::Greene_convex_decomposition_2< Kernel, Container > Class Template Reference
Reference Manual

`#include <CGAL/Polygon_convex_decomposition_2.h>`

## Definition

template<typename Kernel, typename Container>
class CGAL::Greene_convex_decomposition_2< Kernel, Container >

The `Greene_convex_decomposition_2` class implements the approximation algorithm of Greene for the decomposition of an input polygon into convex sub-polygons [6].

This algorithm takes \(O(n \log n)\) time and \(O(n)\) space, where \( n\) is the size of the input polygon, and outputs a decomposition whose size is guaranteed to be no more than four times the size of the optimal decomposition.

Template Parameters

  Kernel | must be a geometric kernel that can be used for the polygon.
  Container | must be a container that can be used for the polygon. It is by default `std::vector<typename Kernel::Point_2>`.

Is model of
  `PolygonConvexDecomposition_2`

See also
  `CGAL::greene_approx_convex_partition_2()`

## Public Types
typedef CGAL::Polygon_2< Kernel, Container > | Polygon_2