CGAL 5.1.3 - 2D Arrangements
CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_back_2 Class Reference

#include <CGAL/Arr_polycurve_traits_2.h>

Definition

Functor to augment a polycurve by either adding a vertex or a subcurve at the back.

Operations

void operator() (Curve_2 &cv, const Subcurve_2 &subcurve) const
 Append a subcurve subcurve to an existing polycurve cv at the back. More...
 
void operator() (X_monotone_curve_2 &xcv, const X_monotone_subcurve_2 &subcurve) const
 Append a subcurve subcurve to an existing \(x\)-monotone polycurve xcv at the back. More...
 

Member Function Documentation

◆ operator()() [1/2]

template<typename SubcurveTraits_2>
void CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_back_2::operator() ( Curve_2 cv,
const Subcurve_2 subcurve 
) const

Append a subcurve subcurve to an existing polycurve cv at the back.

If cv is empty, subcurve will be its first subcurve.

Parameters
cva polycurve. Note, cv is (not necessarily) \(x\)-monotone.
subcurvea subcurve (not necessarily \(x\)-monotone) to be appended to cv

◆ operator()() [2/2]

template<typename SubcurveTraits_2>
void CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_back_2::operator() ( X_monotone_curve_2 xcv,
const X_monotone_subcurve_2 subcurve 
) const

Append a subcurve subcurve to an existing \(x\)-monotone polycurve xcv at the back.

If xcv is empty, subcurve will be its first subcurve.

Parameters
xcvexisting \(x\)-monotone polycurve
subcurvethe subcurve to be added
Precondition
If xcv is not empty then subcurve extends xcv to the right if xcv is oriented right-to-left. Otherwise, subcurve extends xcv to the left.
subcurve is not degenerated.
xcv and subcurve should have the same orientation