Optional knobs on intersectSceneRayTriangle.

interface SceneRayTriangleOptions {
    filter?: (objectId: string) => boolean;
    tMax?: number;
    tMin?: number;
}

Properties

Properties

filter?: (objectId: string) => boolean

Pre-filter on candidate object IDs. Returning false skips the whole object before any per-mesh / per-triangle work. Used to exclude hidden, non-pickable, or marker-only objects from triangle scanning.

tMax?: number

Maximum parametric distance along the ray. Defaults to Infinity.

tMin?: number

Minimum parametric distance along the ray. Defaults to 0.