Regular API function


Description Removes an object from a point cloud, as a subtraction. See also simInsertPointsIntoPointCloud, simInsertObjectIntoPointCloud, simRemovePointsFromPointCloud and the other point cloud related functions.
C synopsis simInt simSubtractObjectFromPointCloud(simInt pointCloudHandle,simInt objectHandle,simInt options,simFloat tolerance,simVoid* reserved)
C parameters
pointCloudHandle: the handle of the point cloud. See also simGetObjectHandle
objectHandle: the handle of the object to subtract. Only potentially measurable objects are supported.
options: reserved. Set to 0
tolerance: a distance used as a tolerance value
reserved: reserved for future extensions. Set to NULL
C return value
-1 if operation was not successful, otherwise the total number of points in the point cloud
Lua synopsis number totalPointCnt=simSubtractObjectFromPointCloud(number pointCloudHandle,number objectHandle,number options,number tolerance)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page