Regular API function

simCreateOctree / sim.createOctree

Description Creates an empty OC tree. See also sim.removeObject and the other OC tree related functions.
C/C++
synopsis
simInt simCreateOctree(simFloat voxelSize,simInt options,simFloat pointSize,simVoid* reserved)
C/C++
parameters
voxelSize: the size of the voxels
options: bit-coded:
bit0 set (1): voxels have random colors
bit1 set (2): show OC tree structure
bit2 set (4): show points instead of voxels
bit3 set (8): reserved. keep unset
bit4 set (16): color is emissive
pointSize: the size of the points in pixels, when voxels are rendered with points
reserved: reserved for future extensions. Set to nullptr
C/C++
return value
-1 if operation was not successful, otherwise the handle of the OC tree
Lua
synopsis
int handle=sim.createOctree(float voxelSize,int options,float pointSize)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int handle=sim.createOctree(float voxelSize,int options,float pointSize)