sim.createOctree

Creates an empty OC tree

Synopsis

int handle = sim.createOctree(float voxelSize, int options, float pointSize) int handle = sim.createOctree(float voxelSize, int options, float pointSize)

Arguments

  • voxelSize: 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

Return values

  • handle: handle of the OC tree


See also: