Regular API function

simCutPathCtrlPoints

Description Removes one or several control points from a path object. See also simInsertPathCtrlPoints and simCreatePath.
C synopsis simInt simCutPathCtrlPoints(simInt pathHandle,simInt startIndex,simInt ptCnt)
C parameters
pathHandle: the handle of the path. Refer also to simGetObjectHandle.
startIndex: the zero-based index of the first control point to remove, or -1 to remove all the control points.
ptCnt: the number of control points to remove.
C return value
-1 if operation was not successful.
Lua synopsis number result=simCutPathCtrlPoints(number pathHandle,number startIndex,number ptCnt)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page