CGAL 5.6 - 2D Minkowski Sums
Loading...
Searching...
No Matches
PolygonConvexDecomposition_2 Concept Reference

Definition

Types

typedef unspecified_type Kernel
 the geometric kernel type.
 
typedef unspecified_type Container
 the container of points type.
 
typedef unspecified_type Point_2
 the point type, used to represent polygon vertices.
 
typedef unspecified_type Polygon_2
 the polygon type, defined as Polygon_2<Kernel,Container>.
 

Creation

 PolygonConvexDecomposition_2 ()
 default constructor.
 

Operations

template<class OutputIterator >
OutputIterator operator() (const Polygon_2 &P, OutputIterator oi) const
 decomposes the input polygon P into convex sub-polygons, and writes them to the output iterator oi.
 

Member Typedef Documentation

◆ Container

the container of points type.

By default it is std::vector<typename Kernel::Point_2>.

Member Function Documentation

◆ operator()()

template<class OutputIterator >
OutputIterator PolygonConvexDecomposition_2::operator() ( const Polygon_2 P,
OutputIterator  oi 
) const

decomposes the input polygon P into convex sub-polygons, and writes them to the output iterator oi.

The value-type of the output iterator must be Polygon_2. The function returns a past-the-end iterator for the convex sub-polygons.