CGAL::insert_x_monotone_curve

#include <CGAL/Arrangement_2.h>

template<class Traits, class Dcel, class PointLocation>
void
insert_x_monotone_curve ( Arrangement_2<Traits,Dcel>& arr,
typename Traits::X_monotone_curve_2 xc,
PointLocation pl = walk_pl)
Inserts the given x-monotone curve xc into the arrangement arr. The Traits parameter must be a model of the ArrangementXMonotoneTraits_2 concept. xc is inserted into the arrangement by locating its left endpoint and computing its zone until reaching the right endpoint. The point-location object pl, which must be a model of the ArrangementPointLocation_2 concept, is used for locating the left endpoint of xc in the exising arrangemnt. By default, the function uses the ``walk along line'' point-location strategy - namely an instance of the class Arr_walk_along_line_point_location<Arrangement_2<Traits,Dcel> >.
Precondition: If provided, pl must be attached to the given arrangement arr.

template<class Traits, class Dcel>
void
insert_x_monotone_curve ( Arrangement_2<Traits,Dcel>& arr,
typename Traits::X_monotone_curve_2 xc,
Object obj)
Inserts the given x-monotone curve xc into the arrangement arr. The Traits parameter must be a model of the ArrangementXMonotoneTraits_2 concept. The object obj, which either wraps a Vertex_const_handle, a Halfedge_const_handle or a Face_const_handle, represents the location of xc's left endpoint in the arrangement. xc is thus inserted into the arrangement from the feature represented by obj by computing its zone until reaching the right endpoint (no point-location query is issued).