unreal.GoogleARCorePointCloud

class unreal.GoogleARCorePointCloud(outer=None, name='None')

Bases: unreal.Object

A UObject that contains a set of observed 3D points and confidence values.

C++ Source:

  • Plugin: GoogleARCore

  • Module: GoogleARCoreBase

  • File: GoogleARCoreTypes.h

get_point(index) -> (out_world_position=Vector, out_confidence=float)

Returns the point position in Unreal world space and it’s confidence value from 0 ~ 1.

Parameters

index (int32) –

Returns

out_world_position (Vector):

out_confidence (float):

Return type

tuple

get_point_id(index)int32

Returns the point Id of the point at the given index.

Each point has a unique identifier (within a session) that is persistent across frames. That is, if a point from point cloud 1 has the same id as the point from point cloud 2, then it represents the same point in space.

Parameters

index (int32) –

Returns

Return type

int32

get_point_in_tracking_space(index) -> (out_tracking_space_location=Vector, out_confidence=float)

Returns the point position in Unreal AR Tracking space.

Parameters

index (int32) –

Returns

out_tracking_space_location (Vector):

out_confidence (float):

Return type

tuple

get_point_num()int32

Returns the number of point inside this point cloud.

Returns

Return type

int32

is_updated()bool

Checks if this point cloud has been updated in this frame.

Returns

Return type

bool

release_point_cloud()None

Release PointCloud’s resources back to ArCore. Data will not be available after releasePointCloud is called.