ReadonlycornerClear all caches (call when geometry changes)
Release this engine before discarding it; create a new engine to resume picking.
Get the raycaster for advanced usage.
Get the snap detector for advanced usage.
Invalidate BVH cache (call when geometry changes)
True when the flat index is warm; instances can still materialize per ray.
Raycast into the scene to get precise 3D intersection point This is more accurate than pick() as it returns the exact surface point
Note: x, y are CSS pixel coordinates relative to the canvas element. The ray is built in that same CSS space (see cssViewport).
Optionaloptions: PickOptions & { snapOptions?: Partial<SnapOptions> }Optionalclip: PickClipState | nullRaycast with magnetic edge snapping behavior This provides the "stick and slide along edges" experience
Note: x, y are CSS pixel coordinates relative to the canvas element. The ray is built in that same CSS space (see cssViewport).
Optionaloptions: PickOptions & { snapOptions?: Partial<SnapOptions> }Optionalclip: PickClipState | nullWhether readback pieces (a neighbourhood only: another ray could pass an unfed front surface) answer (x, y): only the prepared ray, within a 1.5 CSS px radius, under the same view stamp.
Coverage's view stamp: the f64 ray inputs (pose, projection), the matrix, CSS viewport size and host extras.
Renderer wires this once point clouds are initialised so the measure tool can snap to scan points (#1860). Pass null to disable.
Released geometry read back for an imminent raycast or snap (#10264), under the same visibility and clip
rules as flat candidates; null clears. The host owns their lifetime and frame (placeAppearanceSource).
Optionalat: { x: number; y: number }Replace the selected, visible authored curves available to magnetic picking.
Diagnostic (#10264): CPU geometry the raycast index and its BVH still reference.
Host state a ray's answer also depends on, folded into the view stamp (the renderer's pick-clip revision).