Regular API function

simCreateOctree / sim.createOctree

Description Creates an empty octree. See also sim.removeObject and the other octree related functions.
C synopsis simInt simCreateOctree(simFloat voxelSize,simInt options,simFloat pointSize,simVoid* reserved)
C parameters
voxelSize: the size of the voxels
options: bit-coded:
bit0 set (1): voxels have random colors
bit1 set (2): show octree 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 NULL
C return value
-1 if operation was not successful, otherwise the handle of the octree
Lua synopsis number handle=sim.createOctree(number voxelSize,number options,number pointSize)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page