IFClite TypeScript API
    Preparing search index...

    Function groupQuantitySetsByInstance

    • Group a row-index list into QuantitySets keyed on (qsetName, qsetGlobalId), not name alone -- two IfcElementQuantity instances that share a literal name (a federated merge, or an exporter emitting the same Qto_ set twice on one element) must stay distinct, or the second instance's quantities come back attributed to the first instance's GlobalId. Mirrors groupPropertySetsByInstance (same defect, same fix, on the property side). Shared by the live QuantityTable.getForEntity (in quantity-table.ts) and by @ifc-lite/cache's cache-rehydrated readQuantities, which reads the same columnar arrays back from the binary cache -- a single grouping algorithm keeps the two paths from diverging.

      Parameters

      • rowIndices: readonly number[]
      • qsetName: Uint32Array
      • qsetGlobalId: Uint32Array
      • quantityName: Uint32Array
      • quantityType: Uint8Array
      • value: Float64Array
      • formula: Uint32Array
      • strings: StringTable

      Returns QuantitySet[]