Regular API function

simCutPathCtrlPoints / sim.cutPathCtrlPoints

Description Removes one or several control points from a path object. See also sim.insertPathCtrlPoints and sim.createPath.
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=sim.cutPathCtrlPoints(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