All Frameworks  Object Hierarchy  This Framework  Indexes   

Spline2D (Object)

Class defining a spline in 2D Space.
A 2D spline is defined by its constituting control points.

Method Index

GetControlPoints
Returns the control points making up the spline.
GetNumberOfControlPoints
Returns the number of Control Points of the Spline
InsertControlPointAfter
Inserts control points in the spline.

Methods


o 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
 
o Func GetNumberOfControlPoints() As
Returns the number of Control Points of the Spline
Parameters:
oNumber
The number of control points*
o 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).
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)
 

Copyright © 2003, Dassault Systèmes. All rights reserved.