Optional settings on intersectSceneRayTriangle.

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

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.

pickSurfaceNormal?: boolean

When true, compute the world-space face normal of the hit triangle. Defaults to false because it needs three extra point transforms for every nearest-hit candidate.

tMax?: number

Maximum parametric distance along the ray. Defaults to Infinity.

tMin?: number

Minimum parametric distance along the ray. Defaults to 0.