Selva Compute API Reference - v1.1.2
    Preparing search index...

    Interface Intersection<TIntersected>

    interface Intersection<TIntersected extends Object3D = Object3D> {
        barycoord?: Vector3 | null;
        batchId?: number;
        distance: number;
        distanceToRay?: number;
        face?: Face | null;
        faceIndex?: number | null;
        index?: number;
        instanceId?: number;
        normal?: Vector3;
        object: TIntersected;
        point: Vector3;
        pointOnLine?: Vector3;
        uv?: Vector2;
        uv1?: Vector2;
    }

    Type Parameters

    Index

    Properties

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

    Distance between the origin of the ray and the intersection

    distanceToRay?: number

    Some objects (f.e. Points) provide the distance of the intersection to the nearest point on the ray. For other objects it will be undefined

    face?: Face | null

    Intersected face

    faceIndex?: number | null

    Index of the intersected face

    index?: number
    instanceId?: number

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

    normal?: Vector3
    object: TIntersected

    The intersected object

    point: Vector3

    Point of intersection, in world coordinates

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