Description
Creates a curve with no points.
Scripting Syntax
SICreateCurve( [Name], [Degree], [CurveType] )
Parameters
|
Parameter |
Type |
Description |
|
Name |
Name of the curve |
|
|
Degree |
Degree of curve Default Value: 3 Possible Values: • 3: Cubic NURBS Curve • 1: Linear NURBS Curve |
|
|
CurveType |
Specifies whether the curve is interpolated Default Value: 1 Possible Values: • 1: Interpolated Curve • 0: Non-Interpolated Curve |
Return Value
Returns the curve (a X3DObject object).
Examples
VBScript Example
'This example creates a curve by adding points to the curve newscene 'Create a cubic interpolating curve called MyCurve SICreateCurve "MyCurve", 3, 1 SIAddPointOnCurveAtEnd "MyCurve", -8.074, -1.352, 0.135, False SIAddPointOnCurveAtEnd "MyCurve", -5.041, -4.056, 0.406, False SIAddPointOnCurveAtEnd "MyCurve", 4.293, -2.567, 0.257, False SIAddPointOnCurveAtEnd "MyCurve", 8.05, -4.0, 3.0123, False 'Show the knots since we created an interpolating curve SelectObj "MyCurve", , True ToggleValue "compobjselknot", "*.camvis,Views.*.*.camvis"
See Also
|
|
|
Autodesk Softimage v7.5