|
CGAL 6.3 - 1D Arrangements
|
Functions | |
| template<typename GeometryTraits, typename TopologyTraits> | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits >::Vertex_descriptor | CGAL::Arrangement_on_curve_1::insert (Arrangement_on_curve_1< GeometryTraits, TopologyTraits > &arr, const typename GeometryTraits::Point_1 &p) |
| inserts a point into an arrangement. | |
| template<typename GeometryTraits, typename TopologyTraits> | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits >::Const_location_result | CGAL::Arrangement_on_curve_1::locate (Arrangement_on_curve_1< GeometryTraits, TopologyTraits > &arr, const typename GeometryTraits::Point_1 &q) |
| locates a query point in a given arrangement. | |
| template<typename GeometryTraitsA, typename GeometryTraitsB, typename GeometryTraitsRes, typename TopologyTraitsA, typename TopologyTraitsB, typename TopologyTraitsRes, typename OverlayVisitor> | |
| void | CGAL::Arrangement_on_curve_1::overlay (const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA > &arr_a, const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB > &arr_b, Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes > &arr_r, OverlayVisitor &visitor) |
| computes the overlay of two input 1D arrangement objects arr_a and arr_b, and sets the output arrangement arr_r to represent the overlaid arrangement. | |
| template<typename GeometryTraitsA, typename GeometryTraitsB, typename GeometryTraitsRes, typename TopologyTraitsA, typename TopologyTraitsB, typename TopologyTraitsRes> | |
| void | CGAL::Arrangement_on_curve_1::overlay (const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA > &arr_a, const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB > &arr_b, Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes > &arr_r) |
| computes the overlay of two input 1D arrangement objects arr_a and arr_b, and sets the output arrangement arr_r to represent the overlaid arrangement. | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits >::Vertex_descriptor CGAL::Arrangement_on_curve_1::insert | ( | Arrangement_on_curve_1< GeometryTraits, TopologyTraits > & | arr, |
| const typename GeometryTraits::Point_1 & | p ) |
#include <CGAL/insert.h>
inserts a point into an arrangement.
The function first calls locate(arr, p) internally to find where the point \(p\) is located. If \(p\) already matches an existing vertex, the descriptor of that vertex is returned. Otherwise, the function invokes insert_empty(), insert_before(), insert_after(), or split_edge() as needed to safely update the topology, and returns the newly created vertex.
| arr | the arrangement |
| p | the point to insert |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits >::Const_location_result CGAL::Arrangement_on_curve_1::locate | ( | Arrangement_on_curve_1< GeometryTraits, TopologyTraits > & | arr, |
| const typename GeometryTraits::Point_1 & | q ) |
#include <CGAL/locate.h>
locates a query point in a given arrangement.
| arr | the arrangement |
| q | the query point |
| void CGAL::Arrangement_on_curve_1::overlay | ( | const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA > & | arr_a, |
| const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB > & | arr_b, | ||
| Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes > & | arr_r ) |
#include <CGAL/overlay.h>
computes the overlay of two input 1D arrangement objects arr_a and arr_b, and sets the output arrangement arr_r to represent the overlaid arrangement.
All overlay template functions can be instantiated with different geometric traits instances and different topology traits instances. The geometry traits of the resulting arrangement is used to construct the resulting arrangement. The type GeometryTraitsRes::Point_2 of both input arrangements must be convertible to the point type in the resulting arrangement.
| void CGAL::Arrangement_on_curve_1::overlay | ( | const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA > & | arr_a, |
| const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB > & | arr_b, | ||
| Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes > & | arr_r, | ||
| OverlayVisitor & | visitor ) |
#include <CGAL/overlay.h>
computes the overlay of two input 1D arrangement objects arr_a and arr_b, and sets the output arrangement arr_r to represent the overlaid arrangement.
All overlay template functions can be instantiated with different geometric traits instances and different topology traits instances. The geometry traits of the resulting arrangement is used to construct the resulting arrangement. The type GeometryTraitsRes::Point_2 of both input arrangements must be convertible to the point type in the resulting arrangement.