A 2D spline is defined by its constituting control points.
Methods
- Sub GetControlPoints( oCtrlPoints)
-
Returns the control points making up the spline.
- Parameters:
-
- oCtrlPoints
- The control points of the spline
- Example:
- The following example fetches the list of control points defining the
splinemySpline:mySpline.GetControlPoints ControlPoints
- Func GetNumberOfControlPoints() As
-
Returns the number of Control Points of the Spline
- Parameters:
-
- oNumber
- The number of control points* dd>
- Sub InsertControlPointAfter( iCtrlPoint, iPosition)
-
Inserts control points in the spline. If a 2D point is given (and not a control
point), a new control point is created and aggregated in the spline.- Parameters:
-
- iCtrlPoint
- The new point to be inserted. (@see CATIAPoint2D and CATIAControlPoint2D
for more information). dd> - iPosition
- The position at which to insert the point.
To insert a new control point as the first element, set iPosition to 0.- Example:
- The following example inserts a control point myCtrlPoint as the second
element of the splinemySpline:call mySpline.InsertControlPointAfter (myCtrlPoint, 1)