Table of Contents

Method ToPolygon

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolygon(GeoEllipse3, int)

Approximates the rim of an ellipse in space as a polygon with a given number of edges, its corners evenly spread in the eccentric angle.

public static GeoPolygon3 ToPolygon(GeoEllipse3 ellipse, int segmentCount)

Parameters

ellipse GeoEllipse3

The ellipse.

segmentCount int

How many edges; at least three.

Returns

GeoPolygon3

The polygon ToPolygon(GeoEllipse2, int) gives, put into the ellipse's plane.

Exceptions

ArgumentOutOfRangeException

Thrown when fewer than three edges are asked for.

ArgumentException

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