Method ToPolyline
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ToPolyline(GeoEllipse3, int)
Approximates the rim of an ellipse in space as a chain with a given number of pieces, its points evenly spread in the eccentric angle and its first point repeated at the end.
public static GeoPolyline3 ToPolyline(GeoEllipse3 ellipse, int segmentCount)
Parameters
ellipseGeoEllipse3The ellipse.
segmentCountintHow many pieces; at least three.
Returns
- GeoPolyline3
The corners of ToPolygon(GeoEllipse3, int), the first repeated at the end.
Exceptions
- ArgumentOutOfRangeException
Thrown when fewer than three pieces are asked for.