Regular API function

simGetOctreeVoxels / sim.getOctreeVoxels

Description Retrieves voxel positions from an OC tree. See also the other OC tree related functions.
C/C++
synopsis
const float* simGetOctreeVoxels(simInt octreeHandle,simInt* ptCnt,simVoid* reserved)
C/C++
parameters
octreeHandle: the handle of the OC tree. See also sim.getObject
ptCnt: a pointer receiving the number of voxels contained in the returned pointer.
reserved: reserved for future extensions. Set to nullptr
C/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
float[] voxels=sim.getOctreeVoxels(int octreeHandle)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
list voxels=sim.getOctreeVoxels(int octreeHandle)