CGAL 6.0.1 - 2D Arrangements
|
#include <CGAL/Arr_polyline_traits_2.h>
The Curve_2
type nested within the traits class respresnts polylines.
Public Types | |
typedef std::vector< X_monotone_segment_2 >::const_iterator | Segment_const_iterator |
Const iterator of subcurves. | |
typedef std::reverse_iterator< Segment_const_iterator > | Segment_const_reverse_iterator |
Reverse const iterator of subcurves. | |
Public Member Functions | |
Curve_2 () | |
constructs default. | |
Curve_2 (const Segment_2 &seg) | |
constructs from a subcurve. | |
template<typename InputIterator > | |
void | Curve_2 (InputIterator begin, InputIterator end) |
constructs a polyline from a range of subcurves. | |
Segment_const_iterator | begin_segments () const |
obtains an iterator for the polycurve subcurves. | |
Segment_const_iterator | end_segments () const |
obtains a past-the-end iterator for the polycurve subcurves. | |
Segment_const_reverse_iterator | rbegin_segments () const |
obtains the first reverse iterator of the polyline subcurves. | |
Segment_const_reverse_iterator | rend_segments () const |
obtains the past-the-end reverse iterator for the polyline points. | |
Segments_size_type | number_of_segments () const |
Obtain the number of subcurves that comprise the poyline. | |
void CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Curve_2::Curve_2 | ( | InputIterator | begin, |
InputIterator | end | ||
) |
constructs a polyline from a range of subcurves.
begin | An iterator pointing to the first subcurve in the range. |
end | An iterator pointing after the past-the-end subcurve in the range. |
Segments_size_type CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Curve_2::number_of_segments | ( | ) | const |
Obtain the number of subcurves that comprise the poyline.