import type * as THREE from 'three/webgpu'; import { type SplatRequestOptions } from '../../loaders/loading'; import { type TriangleMeshData } from './parse-mesh-ply'; import type { SplatCollisionData } from '../../streaming/lod-source'; /** * Fetches the collision-mesh tiles a streamed scene declares. * * VLAM! is not a physics engine: this hands back plain triangle geometry and * stops there. Building an acceleration structure, resolving a character * against it, and deciding what "collision" means for the host's camera are * all the host's business (see the demo's `collision.ts` for one answer). * * Descriptors may point at `.lcc2` mesh PLYs or a classic-LCC `collision.lci` * (one file → many per-cell tiles). */ /** One loaded collision tile, in the scene's source-local frame. */ export interface CollisionMeshTile { /** The URL it came from - a stable identity for caching or debugging. */ readonly url: string; readonly data: TriangleMeshData; /** Source-local bounds from the manifest, when it declared them. */ readonly bounds?: THREE.Box3; } /** * Fetches and parses every tile in `collision`, concurrently. * * A tile that fails to fetch or parse is warned about and skipped rather than * failing the batch: collision degrades to partial coverage, which is what the * rest of the streaming pipeline does with a bad chunk too. A classic-LCC * `.lci` descriptor expands into one tile per cell mesh inside the file. * * @throws a `DOMException` named `AbortError` when cancelled. */ export declare function loadCollisionMeshTiles(collision: SplatCollisionData, options?: { request?: SplatRequestOptions; signal?: AbortSignal; }): Promise;