Regular API function


Description Ungroups a compound shape into several simple shapes. See also simGroupShapes, simConvexDecompose, simGetQHull and simGetDecimatedMesh.
C synopsis simInt* simUngroupShape(simInt shapeHandle,simInt* shapeCount)
C parameters
shapeHandle: the handles of the shape you wish to ungroup. If you specify for this argument (-2-handleOfShape), then the shape will be divided instead of ungrouped.
shapeCount (output): the size of the returned buffer.
C return value
a pointer to an array holding the handles of the resulting shapes, or NULL in case of an error. The user is in charge of releasing the array buffer with simReleaseBuffer.
Lua synopsis table simpleShapeHandles=simUngroupShape(number shapeHandle)
Lua parameters
Similar to C-function
Lua return values
Similar to C-function

All regular API functions on one page