Regular API function

simGetOctreeVoxels / sim.getOctreeVoxels

Description Retrieves voxel positions from an OC tree. See also the other OC tree related functions.
C synopsis const float* simGetOctreeVoxels(simInt octreeHandle,simInt* ptCnt,simVoid* reserved)
C parameters
octreeHandle: the handle of the OC tree. See also simGetObjectHandle
ptCnt: a pointer receiving the number of voxels contained in the returned pointer.
reserved: reserved for future extensions. Set to nullptr
C return value
nullptr if operation was not successful or if the OC tree doesn't contain any voxels. Otherwise a pointer to the voxel X/Y/Z positions, relative to the OC tree reference frame
Lua synopsis table[] voxels=sim.getOctreeVoxels(int octreeHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart