Method ToGeoSpline3
- Namespace
- GeometryHelper.CadConvert
- Assembly
- GeometryHelper.CadConvert.dll
ToGeoSpline3(Spline)
Converts an AutoCAD Spline to a GeometryHelper spline in space.
public static GeoSpline3 ToGeoSpline3(this Spline spline)
Parameters
splineSplineThe AutoCAD Spline to convert.
Returns
- GeoSpline3
The converted GeoSpline3, with AutoCAD's degree, control points, knots and, where it is rational, weights.
Remarks
A cubic of AutoCAD's with the control points (0, 0, 0), (100, 150, 0), (200, 150, 0), (300, 0, 0) and the knots 0, 0, 0, 0, 1, 1, 1, 1 is the same cubic, rising to 112.5 at (150, 112.5, 0). Weights are read only for a rational spline; a spline that is not has them all one.
Exceptions
- ArgumentNullException
Thrown when
splineis 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.
ToGeoSpline3(IEnumerable<Spline>)
Converts a sequence of AutoCAD Splines to a list of GeometryHelper splines in space.
public static List<GeoSpline3> ToGeoSpline3(this IEnumerable<Spline> splines)
Parameters
splinesIEnumerable<Spline>The sequence of AutoCAD Splines to convert.
Returns
- List<GeoSpline3>
A list of converted GeoSpline3.