Interface PointsPickResult<TFeature>

Pick result on PointCloud-like objects

interface PointsPickResult<TFeature> {
    batchId?: number;
    coord: {
        x: number;
        y: number;
        z: number;
    };
    distance: number;
    distanceToRay?: number;
    entity: null | Entity3D<Entity3DEventMap, EntityUserData>;
    face?: null | Face;
    faceIndex?: number;
    features?: TFeature[];
    index: number;
    instanceId?: number;
    isPointsPickResult: true;
    normal?: Vector3;
    object: Points<BufferGeometry<NormalBufferAttributes>, Material | Material[]>;
    point: Vector3;
    pointOnLine?: Vector3;
    uv?: Vector2;
    uv1?: Vector2;
}

Type Parameters

  • TFeature = unknown

Hierarchy (view full)

Properties

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

Coordinates of the point picked.

distance: number

Distance from the camera to the picked result.

distanceToRay?: number

Entity picked

face?: null | Face

Intersected face

faceIndex?: number

Index of the intersected face

features?: TFeature[]

Features picked (if pickFeatures enabled).

index: number

Index of the point in the Points object

instanceId?: number

The index number of the instance where the ray intersects the InstancedMesh

isPointsPickResult
normal?: Vector3

Point cloud picked

point: Vector3

Point picked.

pointOnLine?: Vector3
uv?: Vector2
uv1?: Vector2