CGAL 6.1.2 - 2D Regularized Boolean Set-Operations

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

## Definition

Refines
  `AdaptableBinaryFunction`

Has models
  `AosDirectionalXMonotoneTraits_2::Are_mergeable_2`

## Operations
A model of this concept must provide:
bool | operator() (ArrDirectionalTraits::X_monotone_curve_2 xc1, ArrDirectionalTraits::X_monotone_curve_2 xc2)
| accepts two \( x\)-monotone curves `xc1` and `xc2` and determines whether they can be merged to form a single \( x\)-monotone curve.

## Member Function Documentation

## ◆ operator()()

bool ArrDirectionalTraits::AreMergeable_2::operator() | ( | ArrDirectionalTraits::X_monotone_curve_2 | xc1,
|  | ArrDirectionalTraits::X_monotone_curve_2 | xc2
| ) |  |

accepts two \( x\)-monotone curves `xc1` and `xc2` and determines whether they can be merged to form a single \( x\)-monotone curve.

`xc1` and `xc2` are mergeable if their underlying curves are identical, they share a common endpoint, and they do not bend to form a non- \( x\)-monotone curve.

Precondition
  The target point of `xc1` and the source point `xc2` coincide or the source point of `xc2` and the target point `xc2` coincide.