Method ToGeoEllipse3
- Namespace
- GeometryHelper.CadConvert
- Assembly
- GeometryHelper.CadConvert.dll
ToGeoEllipse3(Ellipse)
Converts an AutoCAD Ellipse to a GeometryHelper ellipse in space, keeping the plane it lies in.
public static GeoEllipse3 ToGeoEllipse3(this Ellipse ellipse)
Parameters
ellipseEllipseThe AutoCAD Ellipse to convert.
Returns
- GeoEllipse3
The converted GeoEllipse3, with AutoCAD's centre, normal and major axis.
Remarks
The major radius is the length of AutoCAD's major axis and the minor radius that times the radius ratio, so an ellipse with the major axis (300, 0, 0) and a radius ratio of 0.5 is the ellipse 300 by 150 along X.
Exceptions
- ArgumentNullException
Thrown when
ellipseis null.- ArgumentException
Thrown when the ellipse is an elliptical arc, sweeping less than a whole turn.
ToGeoEllipse3(IEnumerable<Ellipse>)
Converts a sequence of AutoCAD Ellipses to a list of GeometryHelper ellipses in space.
public static List<GeoEllipse3> ToGeoEllipse3(this IEnumerable<Ellipse> ellipses)
Parameters
ellipsesIEnumerable<Ellipse>The sequence of AutoCAD Ellipses to convert.
Returns
- List<GeoEllipse3>
A list of converted GeoEllipse3.