IFClite TypeScript API
    Preparing search index...

    Function countUsdMeshes

    • Count the meshes a viewer draws in an IFC-Lite-generated USDA stage: the def Mesh prims, baked or instance occurrences. Prototypes (class Mesh) are not drawn on their own, so they do not count. Zero means a stage with nothing to look at, which the Rust exporter refuses since #7695.

      The exporter writes one prim header per line, so an anchored per-line match counts them without a USDA parse; a def Mesh inside a string value is never at the start of a line.

      Parameters

      • usda: Uint8Array

      Returns number