IFClite TypeScript API
    Preparing search index...

    Function visitCompactPayload

    @ifc-lite/geometry/compact: compact GPU-record meshes (MeshData.compact) for the code that draws or reads them. A subpath of its own because it is small and pure: importing it loads neither the wasm engine the package root brings in nor the record decoder, which loadCompactGeometry fetches when a host turns compact records on.

    • Hand a memory census every array a compact mesh retains: the records, the indices and the per-row tables. The one walk both censuses use (the renderer's and the viewer's), so neither undercounts.

      Parameters

      • p: CompactPayload
      • visit: (array: ArrayBufferView, kind: "other" | "indices") => void

      Returns void