modeling drawing
Adds a point at the start of a curve.
SIAddPointOnCurveAtStart( InputObj, [X], [Y], [Z], [Local], [CurveType], [PreserveTrace] ); |
Parameter | Type | Description |
---|---|---|
InputObj | String | Curve to set points on. |
X | Double | X coordinate
Default Value: 0 |
Y | Double | Y coordinate
Default Value: 0 |
Z | Double | Z coordinate
Default Value: 0 |
Local | Boolean | True if points are in local coordinates, False if they are in
global coordinates.
Default Value: False |
CurveType | Integer | Type of curve
Default Value: -1 |
PreserveTrace | Boolean | True if the current trace of the curve should remain intact
with the addition of the new point.
Default Value: False |
'This example shows how to add points before the start of a curve newscene 'Create a curve and add points at start. 'Adding points at start will create a curve that 'has the same trace as adding the same points at end 'but with start and end points reversed. SICreateCurve "crvlist", 3, 0 SIAddPointOnCurveAtStart "crvlist", -4.0, 0, 1.6, False SIAddPointOnCurveAtStart "crvlist", -3.9, 0, -0.3, False SIAddPointOnCurveAtStart "crvlist", -2.3, 0, 0.2, False SIAddPointOnCurveAtStart "crvlist", -1.9, 0, -2.2, False SIAddPointOnCurveAtStart "crvlist", -0.1, 0, -0.9, False SIAddPointOnCurveAtStart "crvlist", 0.4, 0, 0.6, False SIAddPointOnCurveAtStart "crvlist", 3, 0, -1.7, False SIAddPointOnCurveAtStart "crvlist", 3.7, 0, -1.8, False 'Show boundaries SelectObj "crvlist" ToggleValue "attrselboundaryflags", "*.camvis,Views.*.*.camvis" |