Table of Contents

Class SparseSpatialMapBuildTargetController

命名空間
easyar
組件
EasyAR.Sense.dll

在場景中控制easyar.SparseSpatialMap生成的地圖的MonoBehaviour

[DisallowMultipleComponent]
[RequireComponent(typeof(SparseSpatialMapPointCloudRenderer))]
public class SparseSpatialMapBuildTargetController : MonoBehaviour
繼承
SparseSpatialMapBuildTargetController

屬性

PointCloud

當前點雲數據。

public List<Vector3> PointCloud { get; }

PointCloudRenderer

點雲渲染器。

public SparseSpatialMapPointCloudRenderer PointCloudRenderer { get; }

方法

HitTest(Vector2)

在當前點雲中進行Hit Test,得到距離相機從近到遠一條射線上的n(n>=0)個位置座標。pointInView 需要被歸一化到[0, 1]^2。

public List<Vector3> HitTest(Vector2 pointInView)

參數

pointInView