IFClite TypeScript API
    Preparing search index...

    Class RaycastEngine

    Index
    • Parameters

      • camera: Camera
      • scene: RaycastScene
      • canvas: HTMLCanvasElement

      Returns RaycastEngine

    cornerMarkers: CornerMarkerChannel
    viewStampExtra: () => string

    Host state a ray's answer also depends on, folded into the view stamp (the renderer's pick-clip revision).

    • Clear all caches (call when geometry changes)

      Returns void

    • Release this engine before discarding it; create a new engine to resume picking.

      Returns void

    • Invalidate BVH cache (call when geometry changes)

      Returns void

    • True when the flat index is warm; instances can still materialize per ray.

      Returns boolean

    • 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).

      Parameters

      Returns { intersection: Intersection; snap?: SnapTarget } | null

    • Whether 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.

      Parameters

      • x: number
      • y: number

      Returns boolean

    • Coverage's view stamp: the f64 ray inputs (pose, projection), the matrix, CSS viewport size and host extras.

      Returns string

    • Renderer wires this once point clouds are initialised so the measure tool can snap to scan points (#1860). Pass null to disable.

      Parameters

      • provider: PointCloudRayProvider | null

      Returns void

    • 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).

      Parameters

      • meshes: readonly MeshData[] | null
      • Optionalat: { x: number; y: number }

      Returns void

    • Replace the selected, visible authored curves available to magnetic picking.

      Parameters

      Returns void

    • Diagnostic (#10264): CPU geometry the raycast index and its BVH still reference.

      Parameters

      • visit: CpuGeometryVisitor

      Returns void