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
Copies the point cloud into the supplied parameter points . |
GetPoint(int index)
|
Vector4
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
Deprecated. Please copy points manually instead.
Details | |||
---|---|---|---|
Parameters |
|
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
Deprecated. Please use Frame.PointCloud.GetPointAsStruct instead.
Details | |||
---|---|---|---|
Parameters |
|
||
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._invalidPointId
.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The point from the point cloud at
index . |