Method ToPolygonByChordTolerance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ToPolygonByChordTolerance(double)
Approximates the rim as a polygon that strays no further from it than a chord tolerance, its corners spaced by how sharply the rim bends, symmetric about both axes with a corner at each end of each.
public GeoPolygon2 ToPolygonByChordTolerance(double chordTolerance)
Parameters
chordTolerancedoubleThe largest gap allowed between an edge and the rim, in drawing units. Zero picks the automatic share of the minor radius.
Returns
- GeoPolygon2
A polygon inscribed in the ellipse.
Exceptions
- ArgumentOutOfRangeException
Thrown when the tolerance is negative or not a number, or needs more than 1 048 576 corners.