CGAL 5.4 - 2D Arrangements
|
#include <CGAL/Arr_polyline_traits_2.h>
Functor to augment a polyline by either adding a vertex or a segment at the front.
Operations | |
void | operator() (Curve_2 &cv, const Point_2 &p) const |
Append a point p to an existing polyline cv at the front. More... | |
void | operator() (Curve_2 &cv, const Segment_2 &seg) const |
Append a segment seg to an existing polyline cv at the front. More... | |
void | operator() (const X_monotone_curve_2 &xcv, Point_2 &p) const |
Append a point p to an existing \(x\)-monotone polyline xcv at the front. More... | |
void | operator() (const X_monotone_curve_2 &xcv, Segment_2 &seg) const |
Append a segment seg to an existing \(x\)-monotone polyline xcv at the front. More... | |
void CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Push_front_2::operator() | ( | Curve_2 & | cv, |
const Point_2 & | p | ||
) | const |
Append a point p
to an existing polyline cv
at the front.
cv | a polyline. Note, cv is not (necessarily) \( x\)-monotone. |
p | a point to be appended to cv at the back. |
cv
contains at least one segment. void CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Push_front_2::operator() | ( | Curve_2 & | cv, |
const Segment_2 & | seg | ||
) | const |
Append a segment seg
to an existing polyline cv
at the front.
If cv
is empty, seg
will be its first segment.
cv | a polyline. Note, cv is (not necessarily) \(x\)-monotone. |
seg | a segment (not necessarily \(x\)-monotone) to be appended to cv |
void CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Push_front_2::operator() | ( | const X_monotone_curve_2 & | xcv, |
Point_2 & | p | ||
) | const |
Append a point p
to an existing \(x\)-monotone polyline xcv
at the front.
xcv | the existing \(x\)-monotone polyline |
p | the point to be pushed back. |
xcv
contains at least one segment p
is either to the left of xcv
if it is oriented left-to-right or it is to its right if xcv
is oriented right-to-left. void CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::Push_front_2::operator() | ( | const X_monotone_curve_2 & | xcv, |
Segment_2 & | seg | ||
) | const |
Append a segment seg
to an existing \(x\)-monotone polyline xcv
at the front.
If xcv
is empty, seg
will be its first segment.
xcv | existing \(x\)-monotone polyline |
seg | the segment to be added |
xcv
is not empty then seg
extends xcv
to the left if xcv
is oriented right-to-left. Otherwise, seg
extends xcv
to the right. seg
is not degenerated. xcv
and seg
should have the same orientation