IFClite TypeScript API
    Preparing search index...

    A model to be included in the merge, with its data store and metadata.

    interface MergeModelInput {
        dataStore: IfcDataStore;
        georefMutations?: {
            mapConversion?: Partial<MapConversion>;
            projectedCRS?: Partial<ProjectedCRS>;
            sourceCrs?: readonly number[];
        };
        id: string;
        lengthUnitScale?: number;
        mutationView?: MutablePropertyView;
        name: string;
    }
    Index
    dataStore: IfcDataStore

    Parsed IFC data store (must have source buffer)

    georefMutations?: {
        mapConversion?: Partial<MapConversion>;
        projectedCRS?: Partial<ProjectedCRS>;
        sourceCrs?: readonly number[];
    }

    Pending georeference edits for this model, as StepExporter takes them. Baked like mutationView, so the same async-only rule applies.

    Type Declaration

    • OptionalmapConversion?: Partial<MapConversion>
    • OptionalprojectedCRS?: Partial<ProjectedCRS>
    • OptionalsourceCrs?: readonly number[]

      The IfcGeometricRepresentationContexts a created IfcMapConversion may convert from, in the planner's order of preference (bim.georef ranks them on the session's created, deleted and edited contexts). The exporter takes the first one that is still a context when it writes. Absent for a host that does not plan.

    id: string

    Unique model identifier

    lengthUnitScale?: number

    Length unit scale of this model — the factor that converts the model's raw IFC length values into base SI metres (1.0 metres, 0.001 millimetres, 0.3048 feet, …). Optional: when omitted the exporter reads dataStore.lengthUnitScale, falling back to 1.0.

    The merge compares each model's scale to the first model's to decide whether it can be folded into the unified project (same unit) or must be federated as its own project (different unit). See MergedExporter.

    mutationView?: MutablePropertyView

    Pending edits for this model — property / attribute / quantity / retype / positional mutations and overlay-created entities. When present and non-empty, MergedExporter.exportAsync bakes them into the model (via StepExporter) before merging, so federated export round-trips edits exactly like single-model export. Empty or absent views cost nothing.

    Only honoured by the async exportAsync path: baking re-parses the edited bytes, which needs the async parser. The synchronous MergedExporter.export throws if any model carries pending edits.

    name: string

    Display name