The CubicSplineCurve2d class represents an interpolation cubic spline in 2D space (XY plane).
Autodesk.AutoCAD.Geometry
| Property | Type | Description |
|---|---|---|
FitPoints |
Point2dCollection |
Gets the fit points |
StartTangent |
Vector2d |
Gets start tangent |
EndTangent |
Vector2d |
Gets end tangent |
Point2dCollection fitPoints = new Point2dCollection();
fitPoints.Add(new Point2d(0, 0));
fitPoints.Add(new Point2d(5, 5));
fitPoints.Add(new Point2d(10, 3));
fitPoints.Add(new Point2d(15, 7));
CubicSplineCurve2d spline = new CubicSplineCurve2d(fitPoints);
ed.WriteMessage($"\n2D cubic spline created");- CubicSplineCurve3d - 3D cubic spline
- NurbCurve2d - 2D NURBS curve