Regular API function

simGetPointCloudPoints / sim.getPointCloudPoints

Description Retrieves point positions from a point cloud. See also the other point cloud related functions.
C synopsis const float* simGetPointCloudPoints(simInt pointCloudHandle,simInt* ptCnt,simVoid* reserved)
C parameters
pointCloudHandle: the handle of the point cloud. See also simGetObjectHandle
ptCnt: a pointer receiving the number of points contained in the returned pointer.
reserved: reserved for future extensions. Set to nullptr
C return value
nullptr if operation was not successful or if the point cloud doesn't contain any points. Otherwise a pointer to the point X/Y/Z positions, relative to the point cloud reference frame
Lua synopsis table[] points=sim.getPointCloudPoints(int pointCloudHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart