Interface PickResult<TFeature>

Pick result.

Provides information from Three.js raycasting augmented with Giro3D information.

May be extended, depending on what have been picked.

interface PickResult<TFeature> {
    batchId?: number;
    distance: number;
    distanceToRay?: number;
    entity: null | Entity3D<Entity3DEventMap, EntityUserData>;
    face?: null | Face;
    faceIndex?: number;
    features?: TFeature[];
    index?: number;
    instanceId?: number;
    normal?: Vector3;
    object: Object3D<Object3DEventMap>;
    point: Vector3;
    pointOnLine?: Vector3;
    uv?: Vector2;
    uv1?: Vector2;
}

Type Parameters

  • TFeature = unknown

Hierarchy (view full)

Properties

batchId?: number
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
instanceId?: number

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

normal?: Vector3

THREE.js object picked.

point: Vector3

Point picked.

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