IFClite TypeScript API
    Preparing search index...

    Interface ReadTilesetRegionOptions

    @ifc-lite/tiles3d: headless OGC 3D Tiles reader. Query a tileset for a WGS84 region and get per-feature meshes (float64, tileset root frame / ECEF) with their batch table attributes and tile provenance. Node and browser.

    interface ReadTilesetRegionOptions {
        allowedOrigins?: string[] | "*";
        allowedProtocols?: string[];
        cache?: TilesCache;
        concurrency?: number;
        dracoModuleOptions?: Record<string, unknown>;
        featureFilter?: "intersects" | "tiles";
        fetch?: FetchLike;
        headers?: Record<string, string>;
        loadDraco?: DracoLoader;
        maxBytes?: number;
        maxDecodedIndices?: number;
        maxDecodedVertices?: number;
        maxDepth?: number;
        maxGeometricError?: number;
        maxIndicesPerContent?: number;
        maxNodes?: number;
        maxRequests?: number;
        maxVerticesPerContent?: number;
        region: GeoRegion;
        signal?: AbortSignal;
        tileCullMarginMetres?: number;
        timeoutMs?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    allowedOrigins?: string[] | "*"

    Origins child URIs (external tilesets and contents) may point at, besides the root tileset's own origin, which is always allowed. '*' allows any origin. Default: only the root's origin.

    allowedProtocols?: string[]

    URL schemes the reader may fetch, with the trailing colon. Default ['http:', 'https:']; data:, file: and the rest are refused unless listed here.

    cache?: TilesCache
    concurrency?: number

    Parallel content requests; default 4.

    dracoModuleOptions?: Record<string, unknown>

    Emscripten options for the shared default draco3d decoder, e.g. { locateFile: () => wasmUrl } in a browser bundle. The first load's options apply until resetDracoDecoder().

    featureFilter?: "intersects" | "tiles"

    intersects (default) keeps features whose vertex lon/lat bounds overlap the region; tiles keeps every feature of every intersecting tile.

    fetch?: FetchLike
    headers?: Record<string, string>
    loadDraco?: DracoLoader

    Custom Draco decoder module loader (overrides dracoModuleOptions).

    maxBytes?: number
    maxDecodedIndices?: number

    Triangle indices across the whole query. Default 24,000,000.

    maxDecodedVertices?: number

    Decoded vertices across the whole query. Default 8,000,000.

    maxDepth?: number

    Bound on tile depth across external tilesets; deeper subtrees are skipped with a limit issue. Default 256.

    maxGeometricError?: number

    Target geometric error in metres. Refinement descends while a tile's geometric error exceeds it. Default 0: all the way to the leaves, which for ADD refinement collects every intersecting content and for REPLACE selects the finest level.

    maxIndicesPerContent?: number

    Triangle indices one tile content may produce. Default 6,000,000.

    maxNodes?: number

    Bound on visited tile nodes across all tilesets; default 1,000,000.

    maxRequests?: number
    maxVerticesPerContent?: number

    Decoded vertices one tile content may produce (each glTF node instance of a primitive counts again). Default 2,000,000.

    region: GeoRegion

    Query region, WGS84 degrees.

    signal?: AbortSignal
    tileCullMarginMetres?: number

    Grow the region by this many metres when culling tiles (not when filtering features). Default 0. Use it for tilesets whose bounding volumes do not fully enclose their content, which the specification requires but some producers violate: swisstopo assigns each building to the tile holding its centre, so a building can overhang its tile by tens of metres.

    timeoutMs?: number
    url: string

    Root tileset JSON URL.