The picking result for shapes.

interface ShapePickResult {
    barycoord?: null | Vector3;
    batchId?: number;
    distance: number;
    distanceToRay?: number;
    entity: entities.Shape<EntityUserData>;
    face?: null | Face;
    faceIndex?: null | number;
    features?: unknown[];
    index?: number;
    instanceId?: number;
    isShapePickResult: true;
    normal?: Vector3;
    object: Object3D<Object3DEventMap>;
    pickedLabel?: boolean;
    pickedSegment?: number;
    pickedSurface?: boolean;
    pickedVertexIndex?: number;
    point: Vector3;
    pointOnLine?: Vector3;
    uv?: Vector2;
    uv1?: Vector2;
}

Hierarchy (view full)

Properties

barycoord?: null | Vector3
batchId?: number
distance: number

Distance from the camera to the picked result.

distanceToRay?: number

Entity picked

face?: null | Face

Intersected face

faceIndex?: null | number

Index of the intersected face

features?: unknown[]

Features picked (if pickFeatures enabled).

index?: number
instanceId?: number

The index number of the instance where the ray intersects the THREE.InstancedMesh | InstancedMesh

isShapePickResult
normal?: Vector3

THREE.js object picked.

pickedLabel?: boolean

true if a label was picked, false otherwise.

pickedSegment?: number

The index of the first point that makes the picked segment, otherwise null.

pickedSurface?: boolean

true if the surface was picked, false otherwise.

pickedVertexIndex?: number

The index of the picked vertex, otherwise null.

point: Vector3

Point picked.

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