The function overlay computes the overlay of two input arrangement objects, and returns the overlaid arrangement. All three arrangements can be instantiated with different geometric traits classes and different Dcel (encapsulated in the various topology-traits classes) classes. The geometry traits of the resulting arrangement is used to construct the resulting arrangement. This means that all the types (e.g., Traits::Point_2, Traits::Curve_2, and Traits::Point_2) of both input arrangements have to be convertible to the types in the resulting arrangement. A given overlay-traits object is used to properly construct the overlaid Dcel that represents the resulting arrangement.
#include <CGAL/Arr_overlay_2.h>
template <class GeomTraitsA, class GeomTraitsB, class GeomTraitsRes, class TopTraitsA, class TopTraitsB, class TopTraitsRes, class OverlayTraits> | ||||
void |
|
Precondition
res does not refer to either arr1 or arr2 (that is, ``self overlay'' is not supported).
template <class GeomTraitsA, class GeomTraitsB, class GeomTraitsRes, class TopTraitsA, class TopTraitsB, class TopTraitsRes> | ||||
void |
|
Precondition
res does not refer to either arr1 or arr2 (that is, ``self overlay'' is not supported).#include <CGAL/Arrangement_with_history_2.h>
template<typename Traits, typename Dcel1, typename Dcel2, typename ResDcel, typename OverlayTraits> | ||||
void |
|
Precondition
res does not refer to either arr1 or arr2 (that is, ``self overlay'' is not supported).
template<typename Traits, typename Dcel1, typename Dcel2, typename ResDcel> | ||||
void |
|
Precondition
res does not refer to either arr1 or arr2 (that is, ``self overlay'' is not supported).