The function ch_melkman computes the counterclockwise sequence of extreme points of a sequence of points that forms a simple polyline or polygon.
#include <CGAL/ch_melkman.h>
| ||||
|
| |||
generates the counterclockwise sequence of extreme points
of the points in the range [first, beyond).
The resulting sequence is placed starting at
position result, and the past-the-end iterator for
the resulting sequence is returned. Precondition: The source range [first,beyond) corresponds to a simple polyline. [first,beyond) does not contain result |
The default traits class Default_traits is the kernel in which the type InputIterator::value_type is defined.
CGAL::ch_akl_toussaint
CGAL::ch_bykat
CGAL::ch_eddy
CGAL::ch_graham_andrew
CGAL::ch_jarvis
CGAL::ch_melkman
CGAL::convex_hull_2
It uses an implementation of Melkman's algorithm [Mel87]. Running time of this is linear.