Method ToGeoArc2
- Namespace
- GeometryHelper.CadConvert
- Assembly
- GeometryHelper.CadConvert.dll
ToGeoArc2(Arc)
Converts an AutoCAD Arc to a GeometryHelper 2D arc, as it is seen in plan.
public static GeoArc2 ToGeoArc2(this Arc arc)
Parameters
arcArcThe AutoCAD Arc to convert.
Returns
Remarks
The arc has to lie in a plane parallel to XY, because a tilted one is an ellipse in plan and this gives an arc rather than an approximation of one. ToGeoArc3(Arc) reads any arc. The arc is read through its points at a tolerance of nought, as AutoCAD drew it: the arc of radius 1 000 sweeping 0.002 radians, whose middle lies 0.0005 off its chord of 2, is kept.
Exceptions
- ArgumentNullException
Thrown when
arcis null.- ArgumentException
Thrown when the arc is tilted out of the XY plane, or sweeps a whole turn.
ToGeoArc2(IEnumerable<Arc>)
Converts a sequence of AutoCAD Arcs to a list of GeometryHelper 2D arcs.
public static List<GeoArc2> ToGeoArc2(this IEnumerable<Arc> arcs)
Parameters
arcsIEnumerable<Arc>The sequence of AutoCAD Arcs to convert.