Table of Contents

Method ToPolylineByChordTolerance

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolylineByChordTolerance(GeoEllipse2, double)

Approximates the rim of an ellipse as a chain that strays no further from it than a chord tolerance, its first point repeated at the end.

public static GeoPolyline2 ToPolylineByChordTolerance(GeoEllipse2 ellipse, double chordTolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

chordTolerance double

The largest gap allowed between a piece and the rim, in drawing units. Zero picks the automatic share of the minor radius.

Returns

GeoPolyline2

The corners of ToPolygonByChordTolerance(GeoEllipse2, double), the first repeated at the end.

Exceptions

ArgumentOutOfRangeException

Thrown when the tolerance is negative or not a number, or needs more than 1 048 576 corners.