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
ellipseGeoEllipse3The ellipse.
spacingdoubleThe 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.