The template parameter Segment_traits corresponds to a traits class for line segment that is a model of the ArrangementTraits_2 concept (such as Arr_segment_traits_2<Kernel> or Arr_segment_cached_traits_2<Kernel>).
The Kernel must use a number type that supports exact computations with rational numbers, such as Quotient<Gmpz> or leda_rational. Other inexact representations can be used at the user's own risk.
#include <CGAL/Arr_polyline_traits_2.h>
The Curve_2 class nested within the polylines' traits is used to represent piecewise linear curves and support their construction from any range of points. The copy and default constructor as well as the assignment operator are provided for polyline curves. In addition, an operator<< for the curves is defined for standard output streams.
| |
A reversible iterator for traversing the
points that comprise the polyline curves. Supports the increment
(operator++), decrement (operator--), dereference
(operator*) and equality (operator== and operator!=)
operators.
|
template <class Iterator>
| |||
constructs a polyline defined by the given range of points.
The Iterator type must be Segment_traits::Point_2.
If the range contains points labeled ,
the generated polyline consists of segments, where the th segment
is defined by the endpoints . The first point in the
range is considered as the source point of the polyline while the last
point is considered as its target. Precondition: There are at least two points in the range.
|