Regular API function

simCreatePointCloud

Description Creates an empty point cloud. See also simRemoveObject, simSetPointCloudOptions and the other point cloud related functions.
C synopsis simInt simCreatePointCloud(simFloat maxVoxelSize,simInt maxPtCntPerVoxel,simInt options,simFloat pointSize,simVoid* reserved)
C parameters
maxVoxelSize: the maximum size of the octree voxels containing points
maxPtCntPerVoxel: the maximum number of points allowed in a same octree voxel
options: bit-coded:
bit0 set (1): points have random colors
bit1 set (2): show octree structure
bit2 set (4): reserved. keep unset
bit3 set (8): do not use an octree structure. When enabled, point cloud operations are limited, and point clouds will not be collidable, measurable or detectable anymore, but adding points will be much faster
bit4 set (16): color is emissive
pointSize: the size of the points, in pixels
reserved: reserved for future extensions. Set to NULL
C return value
-1 if operation was not successful, otherwise the handle of the point cloud
Lua synopsis number handle=simCreatePointCloud(number maxVoxelSize,number maxPtCntPerVoxel,number options,number pointSize)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page