IFClite TypeScript API
    Preparing search index...

    Function filterStyleWire

    • Narrow the model's style wire to the ids a subgraph holds. The engine builds a colour map from every entry it is sent, so sending a large model's whole wire costs a map build per re-mesh. The wire is keyed by item and element ids, and both are in the subgraph when they matter.

      Parameters

      • styleIds: Uint32Array
      • styleColors: Uint8Array
      • keep: ReadonlySet<number>

      Returns { styleColors: Uint8Array; styleIds: Uint32Array }