IFClite TypeScript API
    Preparing search index...

    Class SpacesNamespace

    Derive IfcSpace from a model's walls (room footprints) with slab/roof-aware heights. Available on local/headless contexts (direct store access); a remote backend whose store lives server-side will throw.

    const result = bim.spaces.generate({ height: 'auto', snap: 'auto' });
    const ifc = await bim.export.toStep(); // includes the new IfcSpace
    Index
    • Derive IfcSpace across the selected storeys (default: all). Footprint comes from walls; height: 'auto' (default) uses floor-to-floor from storey elevations; snap: 'auto' (default) escalates the corner-closing tolerance. The spaces are written to the model's mutation overlay — call bim.export.toStep() to obtain IFC bytes including them.

      Parameters

      Returns GenerateSpacesAllResult

    • Every IfcBuildingStorey (id, name, elevation), low → high.

      Returns StoreyInfo[]