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