Class SplineConvert
- Namespace
- GeometryHelper.CadConvert
- Assembly
- GeometryHelper.CadConvert.dll
Converts splines between AutoCAD and GeometryHelper.
public static class SplineConvert
- Inheritance
-
SplineConvert
- Inherited Members
Remarks
An AutoCAD Autodesk.AutoCAD.DatabaseServices.Spline holds a NURBS curve, read through its Autodesk.AutoCAD.DatabaseServices.Spline.NurbsData: a degree, control points, knots and, where it is rational, weights. A GeoSpline3 holds the same four things and keeps them as they are given, so the reading is exact both ways, every number to the bit. A spline AutoCAD made from fit points is read by the control points AutoCAD keeps for it; the fit points themselves are not carried. GeometryHelper's splines are clamped, starting at their first control point and ending at their last, so a periodic spline, which is how AutoCAD closes a spline smoothly, is refused.
Methods
- ToAcadSpline(GeoSpline2)
Converts a GeometryHelper spline in the plane to an AutoCAD Spline in the XY plane.
- ToAcadSpline(GeoSpline3)
Converts a GeometryHelper spline in space to an AutoCAD Spline.
- ToAcadSpline(IEnumerable<GeoSpline2>)
Converts a sequence of GeometryHelper splines in the plane to a list of AutoCAD Splines.
- ToAcadSpline(IEnumerable<GeoSpline3>)
Converts a sequence of GeometryHelper splines in space to a list of AutoCAD Splines.
- ToGeoSpline2(Spline)
Converts an AutoCAD Spline to a GeometryHelper spline in the plane, as it is seen in plan.
- ToGeoSpline2(IEnumerable<Spline>)
Converts a sequence of AutoCAD Splines to a list of GeometryHelper splines in the plane, as they are seen in plan.
- ToGeoSpline3(Spline)
Converts an AutoCAD Spline to a GeometryHelper spline in space.
- ToGeoSpline3(IEnumerable<Spline>)
Converts a sequence of AutoCAD Splines to a list of GeometryHelper splines in space.
- TryToGeoSpline2(Spline, out GeoSpline2)
Tries to convert an AutoCAD Spline to a GeometryHelper spline in the plane, as it is seen in plan.