modeling drawing
Deletes a point at the specified position on a curve.
SIDeletePointOnCurve( InputObj, [InsertPosition] ); |
Parameter | Type | Description |
---|---|---|
InputObj | String | Curve from which to delete a point. |
InsertPosition | Integer | Index of the point to delete. Points are indexed starting at 0.
Default Value: 4 |
'This example shows how to delete a point from a curve. newscene 'Create a curve... Do not delete point. SICreateCurve "CrvListWithPnt", 3, 1 SIAddPointOnCurveAtEnd "CrvListWithPnt", -1, 0, 0, False SIAddPointOnCurveAtEnd "CrvListWithPnt", -1, 0, -1, False SIAddPointOnCurveAtEnd "CrvListWithPnt", 1, 0, -1, False SIAddPointOnCurveAtEnd "CrvListWithPnt", 1, 0, 0, False Translate "CrvListWithPnt", 0, 0, -1.5, siRelative, siView, siObj, siXYZ 'Create a curve... Delete a point SICreateCurve "CrvListWithDelPnt", 3, 1 SIAddPointOnCurveAtEnd "CrvListWithDelPnt", -1, 0, 0, False SIAddPointOnCurveAtEnd "CrvListWithDelPnt", -1, 0, -1, False SIAddPointOnCurveAtEnd "CrvListWithDelPnt", 1, 0, -1, False SIAddPointOnCurveAtEnd "CrvListWithDelPnt", 1, 0, 0, False SelectAllUsingFilter "object", siCheckComponentVisibility ToggleValue "compobjselvert", "*.camvis,Views.*.*.camvis" 'Delete the third point on curve (First point as 0 index) SIDeletePointOnCurve "CrvListWithDelPnt", 2 'NOTE: You can do undo to see which point was deleted. 'logmessage "You can do undo to see which point was deleted." |