PointCloud

public class PointCloud

Contains a set of observed 3D points and confidence values. This class implements Closeable and usually should be used in a Java try-with-resources or Kotlin use block, for example:

Frame frame = session.update();
 ...
 // Automatically releases point cloud resources at end of try block.
 try (PointCloud pointCloud = frame.acquirePointCloud()) {
   // Access point cloud data.
 }
 

Public Methods

void
close()
Release PointCloud's resources back to ARCore.
IntBuffer
getIds()
Retrieves a buffer of point cloud point IDs.
FloatBuffer
getPoints()
Returns a buffer of point coordinates and confidence values.
long
getTimestamp()
Returns the timestamp in nanoseconds when this point cloud was observed.
void
release()
Release PointCloud's resources back to ARCore.

Inherited Methods

Public Methods