Get the raycaster for advanced usage.
Get the snap detector for advanced usage.
Invalidate BVH cache (call when geometry changes)
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 | nullRenderer wires this once point clouds are initialised so the measure tool can snap to scan points (#1860). Pass null to disable.
Replace the selected, visible authored curves available to magnetic picking.
Clear all caches (call when geometry changes)