Table of Contents

Method ToGeoEllipse2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoEllipse2(Ellipse)

Converts an AutoCAD Ellipse to a GeometryHelper 2D ellipse, as it is seen in plan.

public static GeoEllipse2 ToGeoEllipse2(this Ellipse ellipse)

Parameters

ellipse Ellipse

The AutoCAD Ellipse to convert.

Returns

GeoEllipse2

The ellipse seen square onto the XY plane, as ProjectToEllipse2(GeoCoordinateSystem3) lays it out in Global.

Remarks

An ellipse lying in the plan is read as it is drawn. A tilted one is the ellipse its outline makes in plan: an ellipse 300 by 200 tilted 60° about its major axis is, in plan, an ellipse 300 by 100.

Exceptions

ArgumentNullException

Thrown when ellipse is null.

ArgumentException

Thrown when the ellipse is an elliptical arc, sweeping less than a whole turn.

InvalidOperationException

Thrown when the ellipse stands square to the XY plane, where in plan it would flatten into a segment rather than an ellipse.

ToGeoEllipse2(IEnumerable<Ellipse>)

Converts a sequence of AutoCAD Ellipses to a list of GeometryHelper 2D ellipses, as they are seen in plan.

public static List<GeoEllipse2> ToGeoEllipse2(this IEnumerable<Ellipse> ellipses)

Parameters

ellipses IEnumerable<Ellipse>

The sequence of AutoCAD Ellipses to convert.

Returns

List<GeoEllipse2>

A list of converted GeoEllipse2.

ToGeoEllipse2(Circle)

Converts an AutoCAD Circle to a GeometryHelper 2D ellipse, as it is seen in plan.

public static GeoEllipse2 ToGeoEllipse2(this Circle circle)

Parameters

circle Circle

The AutoCAD Circle to convert.

Returns

GeoEllipse2

The circle seen square onto the XY plane, as ProjectToEllipse2(GeoCoordinateSystem3) lays it out in Global.

Remarks

A circle lying in the plan is read as an ellipse whose two radii are the radius. A tilted one is the ellipse its outline makes in plan, where ToGeoCircle2(Circle) keeps only the centre and the radius: a circle of radius 300 tilted 60° from the plan is, in plan, an ellipse 300 by 150.

Exceptions

ArgumentNullException

Thrown when circle is null.

InvalidOperationException

Thrown when the circle stands square to the XY plane, where in plan it would flatten into a segment rather than an ellipse.

ToGeoEllipse2(IEnumerable<Circle>)

Converts a sequence of AutoCAD Circles to a list of GeometryHelper 2D ellipses, as they are seen in plan.

public static List<GeoEllipse2> ToGeoEllipse2(this IEnumerable<Circle> circles)

Parameters

circles IEnumerable<Circle>

The sequence of AutoCAD Circles to convert.

Returns

List<GeoEllipse2>

A list of converted GeoEllipse2.