IFClite TypeScript API
    Preparing search index...

    Class RaycastEngine

    Index
    • Parameters

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

      Returns RaycastEngine

    • Clear all caches (call when geometry changes)

      Returns void

    • Invalidate BVH cache (call when geometry changes)

      Returns void

    • 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

    • 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

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

      Parameters

      Returns void