Method IsSimple
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
IsSimple()
Determines whether no two edges of the loop cross.
public bool IsSimple()
Returns
IsSimple(Tolerance)
Determines whether no two edges of the loop cross, within a tolerance.
public bool IsSimple(Tolerance tolerance)
Parameters
toleranceTolerance
Returns
Remarks
Every edge is checked as it is, however short, as the loop laid out in its plane checks it: at a millionth, the loop (10, 0, 0), (10, 10, 0), (0, 10, 0), (0.0004, 0, 0), (0, 0.0004, 0) crosses itself near (0.0004, 0.0004, 0), where it was laid out within the global tolerance of a thousandth and lost the corner the crossing comes back round by. Within a tolerance coarser than an edge, the edges either side of it meet across it, so the rectangle 100 by 50 filleted at 0.0005 at a millionth is simple within a millionth and not within a thousandth, as the same loop in the plane is; laid out within the global tolerance, it lost its arcs and read simple at any tolerance.