|
CGAL 6.3-dev - 1D Arrangements
|
Functions | |
| template<typename GeometryTraits, typename TopologyTraits, bool BinarySearch> | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch >::Vertex_descriptor | CGAL::Arrangement_on_curve_1::insert (Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > &arr, const typename GeometryTraits::Point_1 &p) |
| inserts a point into an arrangement. | |
| template<typename GeometryTraits, typename TopologyTraits, bool BinarySearch> | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch >::Location_result | CGAL::Arrangement_on_curve_1::locate (Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > &arr, const typename GeometryTraits::Point_1 &q) |
| locates a query point in a given arrangement. | |
| template<typename GeometryTraits, typename TopologyTraits, bool BinarySearch> | |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch >::Const_location_result | CGAL::Arrangement_on_curve_1::locate (const Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > &arr, const typename GeometryTraits::Point_1 &q) |
| locates a query point in a given arrangement (const version). | |
| template<typename GeometryTraitsA, typename GeometryTraitsB, typename GeometryTraitsRes, typename TopologyTraitsA, typename TopologyTraitsB, typename TopologyTraitsRes, bool BinarySearchA, bool BinarySearchB, bool BinarySearchRes, typename OverlayVisitor> | |
| void | CGAL::Arrangement_on_curve_1::overlay (const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA, BinarySearchA > &arr_a, const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB, BinarySearchB > &arr_b, Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes, BinarySearchRes > &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, bool BinarySearchA, bool BinarySearchB, bool BinarySearchRes> | |
| void | CGAL::Arrangement_on_curve_1::overlay (const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA, BinarySearchA > &arr_a, const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB, BinarySearchB > &arr_b, Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes, BinarySearchRes > &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, BinarySearch >::Vertex_descriptor CGAL::Arrangement_on_curve_1::insert | ( | Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > & | arr, |
| const typename GeometryTraits::Point_1 & | p ) |
#include <CGAL/Arrangement_on_curve_1/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 creates a new vertex and returns it. Depending on where \(p\) lies, it invokes one of the following:
| arr | the arrangement |
| p | the point to insert |
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch >::Location_result CGAL::Arrangement_on_curve_1::locate | ( | Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > & | arr, |
| const typename GeometryTraits::Point_1 & | q ) |
#include <CGAL/Arrangement_on_curve_1/locate.h>
locates a query point in a given arrangement.
| arr | the arrangement |
| q | the query point |
If BinarySearch is true, the search is a binary search over the vertices, which takes \(O(\log n)\) time. Otherwise, it is a walk from left to right that starts at left_boundary_edge(), which takes \(O(n)\) time.
| Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch >::Const_location_result CGAL::Arrangement_on_curve_1::locate | ( | const Arrangement_on_curve_1< GeometryTraits, TopologyTraits, BinarySearch > & | arr, |
| const typename GeometryTraits::Point_1 & | q ) |
#include <CGAL/Arrangement_on_curve_1/locate.h>
locates a query point in a given arrangement (const version).
| arr | the arrangement |
| q | the query point |
| void CGAL::Arrangement_on_curve_1::overlay | ( | const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA, BinarySearchA > & | arr_a, |
| const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB, BinarySearchB > & | arr_b, | ||
| Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes, BinarySearchRes > & | arr_r ) |
#include <CGAL/Arrangement_on_curve_1/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.
The three arrangements can have different geometry traits and different topology traits, as long as the side categories of their geometry traits are the same. The geometry traits of the resulting arrangement is used to construct the resulting arrangement. The point types GeometryTraitsA::Point_1 and GeometryTraitsB::Point_1 of the input arrangements must be convertible to the point type GeometryTraitsRes::Point_1 of the resulting arrangement.
The function uses Default_overlay_visitor, so the data of the cells of the resulting arrangement, if any, is not set.
| void CGAL::Arrangement_on_curve_1::overlay | ( | const Arrangement_on_curve_1< GeometryTraitsA, TopologyTraitsA, BinarySearchA > & | arr_a, |
| const Arrangement_on_curve_1< GeometryTraitsB, TopologyTraitsB, BinarySearchB > & | arr_b, | ||
| Arrangement_on_curve_1< GeometryTraitsRes, TopologyTraitsRes, BinarySearchRes > & | arr_r, | ||
| OverlayVisitor & | visitor ) |
#include <CGAL/Arrangement_on_curve_1/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.
The three arrangements can have different geometry traits and different topology traits, as long as the side categories of their geometry traits are the same. The geometry traits of the resulting arrangement is used to construct the resulting arrangement. The point types GeometryTraitsA::Point_1 and GeometryTraitsB::Point_1 of the input arrangements must be convertible to the point type GeometryTraitsRes::Point_1 of the resulting arrangement.
| OverlayVisitor | a model of the concept OverlayVisitor; its callback functions update the vertices and edges of the resulting arrangement based on the vertices and edges of the input arrangements that induce them. |