CGAL 6.1.2 - 2D Regularized Boolean Set-Operations: ArrDirectionalTraits::Merge_2 Concept Reference

CGAL 6.1.2 - 2D Regularized Boolean Set-Operations

Loading...
Searching...
No Matches
List of all members
ArrDirectionalTraits::Merge_2 Concept Reference
Reference Manual » Concepts

## Definition

Refines
  `AdaptableBinaryFunction`

Has models
  `AosDirectionalXMonotoneTraits_2::Merge_2`

## Operations
A model of this concept must provide:
void | operator() (ArrDirectionalTraits::X_monotone_curve_2 xc1, ArrDirectionalTraits::X_monotone_curve_2 xc2, ArrDirectionalTraits::X_monotone_curve_2 &xc)
| accepts two mergeable \( x\)-monotone curves `xc1` and `xc2` and assigns `xc` with the merged curve.

## Member Function Documentation

## ◆ operator()()

void ArrDirectionalTraits::Merge_2::operator() | ( | ArrDirectionalTraits::X_monotone_curve_2 | xc1,
|  | ArrDirectionalTraits::X_monotone_curve_2 | xc2,
|  | ArrDirectionalTraits::X_monotone_curve_2 & | xc
| ) |  |

accepts two mergeable \( x\)-monotone curves `xc1` and `xc2` and assigns `xc` with the merged curve.

If the target point of `xc1` and the source point of `xc2` coincide; then the source point of `xc1` and the target point of `xc2` become the source and target points of `xc`, respectively. If the target point of `xc2` and the source point of `xc1` coincide; then the source point of `xc2` and the target point of `xc1` become the source and target points of `xc`, respectively.

Precondition
  `are_mergeable_2`(`xc1`, `xc2`) is true.