프로퍼티 | 타입 | 설명 | |
---|---|---|---|
m_updatePointsMesh | bool | ||
m_useAreaDescriptionPose | bool |
메소드 | 설명 | |
---|---|---|
FindClosestPoint ( Camera cam, Vector2 pos, int maxDist ) : int |
Finds the closest point from a point cloud to a position on screen. NOTE: This is slow because it looks at every single point in the point cloud. Avoid calling this more than once a frame.
|
|
FindPlane ( Camera cam, Vector2 pos, Vector3 &planeCenter, Plane &plane ) : bool |
Given a screen coordinate, find a plane that most closely fits depth values in that area. This assumes you are using this in an AR context.
|
|
OnTangoDepthAvailable ( |
Callback that gets called when depth is available from the Tango Service.
|
|
Start ( ) : void |
Use this for initialization.
|
메소드 | 설명 | |
---|---|---|
_SetUpCameraData ( ) : void |
Sets up extrinsic matrixes and camera intrinsics for this hardware.
|
public FindClosestPoint ( Camera cam, Vector2 pos, int maxDist ) : int | ||
cam | Camera | The current camera. |
pos | Vector2 | Position on screen (in pixels). |
maxDist | int | The maximum pixel distance to allow. |
리턴 | int |
public FindPlane ( Camera cam, Vector2 pos, Vector3 &planeCenter, Plane &plane ) : bool | ||
cam | Camera | The Unity camera. |
pos | Vector2 | The point in screen space to perform detection on. |
planeCenter | Vector3 | Filled in with the center of the plane in Unity world space. |
plane | Plane | Filled in with a model of the plane in Unity world space. |
리턴 | bool |
public OnTangoDepthAvailable ( |
||
tangoDepth | Depth information from Tango. | |
리턴 | void |