Table of Contents

Method ToGeoSpline2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoSpline2(Spline)

Converts an AutoCAD Spline to a GeometryHelper spline in the plane, as it is seen in plan.

public static GeoSpline2 ToGeoSpline2(this Spline spline)

Parameters

spline Spline

The AutoCAD Spline to convert.

Returns

GeoSpline2

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

Remarks

A spline in the plan is read as it is drawn. A tilted one, or one that bends out of a plane, is the spline its outline makes in plan, which is exact: a NURBS seen square onto a plane is the NURBS of its control points seen so, with the same knots and weights, so a cubic rising from (0, 0, 0) to (300, 0, 200) is the cubic along X from (0, 0) to (300, 0).

Exceptions

ArgumentNullException

Thrown when spline is null.

ArgumentException

Thrown when the spline is periodic, or its numbers do not make a clamped spline GeometryHelper takes.

ArgumentOutOfRangeException

Thrown when its degree is above 25 or a weight is not above nought.

InvalidOperationException

Thrown when the spline stands square to the XY plane, where in plan every control point lands on one point.

ToGeoSpline2(IEnumerable<Spline>)

Converts a sequence of AutoCAD Splines to a list of GeometryHelper splines in the plane, as they are seen in plan.

public static List<GeoSpline2> ToGeoSpline2(this IEnumerable<Spline> splines)

Parameters

splines IEnumerable<Spline>

The sequence of AutoCAD Splines to convert.

Returns

List<GeoSpline2>

A list of converted GeoSpline2.