GoogleARCore.Frame.PointCloud

Container for state related to the ARCore point cloud for the Frame.

Summary

Properties

IsUpdatedThisFrame
static bool
Gets a value indicating whether new point cloud data became available in the current frame.
PointCount
static int
Gets the count of point cloud points in the frame.

Public static functions

CopyPoints(List< Vector4 > points)
void
Deprecated. Please copy points manually instead.
Copies the point cloud into the supplied parameter points.
GetPoint(int index)
Vector4
Deprecated. Please use Frame.PointCloud.GetPointAsStruct instead.
Gets a point from the point cloud at a given index.
GetPointAsStruct(int index)
Gets a point from the point cloud at the given index.

Properties

IsUpdatedThisFrame

static bool IsUpdatedThisFrame

Gets a value indicating whether new point cloud data became available in the current frame.

Details
Returns
true if new point cloud data became available in the current frame, otherwise false.

PointCount

static int PointCount

Gets the count of point cloud points in the frame.

Public static functions

CopyPoints

void CopyPoints(
  List< Vector4 > points
)

Copies the point cloud into the supplied parameter points.

Each point will be a Vector4 in the form where the first three dimensions describe the position of the point in the world and the last represents a confidence estimation in the range [0, 1).

Deprecated. Please copy points manually instead.

Details
Parameters
points
A list that will be filled with point cloud points by this method call.

GetPoint

Vector4 GetPoint(
  int index
)

Gets a point from the point cloud at a given index.

The point returned will be a Vector4 in the form where the first three dimensions describe the position of the point in the world and the last represents a confidence estimation in the range [0, 1).

Deprecated. Please use Frame.PointCloud.GetPointAsStruct instead.

Details
Parameters
index
The index of the point cloud point to get.
Returns
The point from the point cloud at index along with its confidence.

GetPointAsStruct

PointCloudPoint GetPointAsStruct(
  int index
)

Gets a point from the point cloud at the given index.

If the point is inaccessible due to session state or an out-of-range index a point will be returns with the Id field set to PointCloudPoint.k_InvalidPointId.

Details
Parameters
index
The index of the point cloud point to get.
Returns
The point from the point cloud at index.

Send feedback about...