Regular API function

simRemoveVoxelsFromOctree

Description Removes voxels from an octree. See also simInsertVoxelsIntoOctree and the other octree related functions.
C synopsis simInt simRemoveVoxelsFromOctree(simInt octreeHandle,simInt options,const simFloat* pts,simInt ptCnt,simVoid* reserved)
C parameters
octreeHandle: the handle of the octree. See also simGetObjectHandle
options: bit-coded:
bit0 set (1): specified points are relative to the octree reference frame, otherwise they are relative to the world reference frame
pts: a pointer to the voxel positions specified as X/Y/Z coordinates. Set to NULL to remove all voxels
ptCnt: the number of point coordinates contained in pts
reserved: reserved for future extensions. Set to NULL
C return value
-1 if operation was not successful, otherwise the total number of voxels in the octree
Lua synopsis number totalVoxelCnt=simRemoveVoxelsFromOctree(number octreeHandle,number options,table points)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page