CGAL 5.6 - 2D Arrangements
|
#include <CGAL/Arr_polyline_traits_2.h>
Construction functor of a general (not necessarily \(x\)-monotone) polyline.
This functor constructs general polylines. Its operator()
is oveloaded to support various input types.
Note that the composing segments, depending on the SegmentTraits_2
, might not be \(x\)-monotone.
Operations | |
Curve_2 | operator() (const Point_2 &p, const Point_2 &q) const |
Obtain a polyline connecting the two given endpoints. More... | |
Curve_2 | operator() (const Segment_2 &seg) const |
Obtain a polyline that comprises of one given segment. More... | |
template<typename ForwardIterator > | |
Curve_2 | operator() (ForwardIterator begin, ForwardIterator end) const |
Construct a well-oriented polyline from a range of either SegmentTraits_2::Point_2 or SegmentTraits_2::Segment_2 . More... | |
Curve_2 CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Construct_curve_2::operator() | ( | const Point_2 & | p, |
const Point_2 & | q | ||
) | const |
Obtain a polyline connecting the two given endpoints.
p | The first point. |
q | The second point. |
p
and q
are distinct. p
and q
. Curve_2 CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Construct_curve_2::operator() | ( | const Segment_2 & | seg | ) | const |
Obtain a polyline that comprises of one given segment.
seg | input segment |
seg
is not degenerated (not tested) seg
. Curve_2 CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Construct_curve_2::operator() | ( | ForwardIterator | begin, |
ForwardIterator | end | ||
) | const |
Construct a well-oriented polyline from a range of either SegmentTraits_2::Point_2
or SegmentTraits_2::Segment_2
.
begin | iterator pointing to the first element in the range. |
end | iterator pointing to the past-the-end element in the range. |