Creates a curve with no points.
oReturn = SICreateCurve( [Name], [Degree], [CurveType] ); |
Returns the curve (a X3DObject object).
Parameter | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Name | String | Name of the curve | ||||||
Degree | Integer | Degree of curve
Default Value: 3
|
||||||
CurveType | Integer | Specifies whether the curve is interpolated
Default Value: 1
|
'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" |
CreateCurve SIAddPointOnCurve SIAddPointOnCurveAtStart SIAddPointOnCurveAtEnd GetCurveLength EvaluateCurveAt