Method IsSimple
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
IsSimple()
Determines whether the loop crosses itself nowhere.
public bool IsSimple()
Returns
IsSimple(Tolerance)
Determines whether the loop crosses itself nowhere, within a tolerance.
public bool IsSimple(Tolerance tolerance)
Parameters
toleranceTolerance
Returns
- bool
true when no edge meets another except where two neighbours share their vertex.
Remarks
The check is exact on the arcs, so a loop whose chords would cross but whose arcs do not is reported simple, and one whose arcs bulge into each other is not. A loop is not checked when it is built, because the check costs more than the building does.