Table of Contents

Method ToPolygonBySpacing

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolygonBySpacing(GeoEllipse3, double)

Approximates the rim of an ellipse in space as a polygon whose corners are evenly spread along it, no two further apart along the rim than a spacing.

public static GeoPolygon3 ToPolygonBySpacing(GeoEllipse3 ellipse, double spacing)

Parameters

ellipse GeoEllipse3

The ellipse.

spacing double

The largest length allowed along the rim between two corners.

Returns

GeoPolygon3

The polygon ToPolygonBySpacing(GeoEllipse2, double) gives, put into the ellipse's plane.

Exceptions

ArgumentOutOfRangeException

Thrown when the spacing is not a positive number.

ArgumentException

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