Interface PointsPickResult<TFeature>

Pick result on PointCloud-like objects

interface PointsPickResult<TFeature> {
    coord: {
        x: number;
        y: number;
        z: number;
    };
    distance: number;
    entity: Entity3D<Entity3DEventMap, EntityUserData>;
    features?: TFeature[];
    index: number;
    isPointsPickResult: true;
    object: Points<BufferGeometry<NormalBufferAttributes>, Material | Material[]>;
    point: Vector3;
}

Type Parameters

  • TFeature = unknown

Hierarchy (view full)

Properties

coord: {
    x: number;
    y: number;
    z: number;
}

Coordinates of the point picked.

Type declaration

  • x: number
  • y: number
  • z: number
distance: number

Distance from the camera to the picked result.

Entity picked

features?: TFeature[]

Features picked (if pickFeatures enabled).

index: number

Index of the point in the Points object

isPointsPickResult: true
object: Points<BufferGeometry<NormalBufferAttributes>, Material | Material[]>

Point cloud picked

point: Vector3

Point picked.