Table of Contents

Method ToPolygonByChordTolerance

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolygonByChordTolerance(GeoEllipse3, double)

Approximates the rim of an ellipse in space as a polygon that strays no further from it than a chord tolerance.

public static GeoPolygon3 ToPolygonByChordTolerance(GeoEllipse3 ellipse, double chordTolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

chordTolerance double

The largest gap allowed between an edge and the rim, in drawing units. Zero picks GeometryHelper.Internal.Tessellation.AutomaticChordRatio of the minor radius.

Returns

GeoPolygon3

The polygon ToPolygonByChordTolerance(GeoEllipse2, double) gives, put into the ellipse's plane: counter-clockwise about the normal from the end of the major axis, symmetric about both axes.

Exceptions

ArgumentOutOfRangeException

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

ArgumentException

Thrown when the centre has a coordinate that is not a finite number.