@twinfinity/core
    Preparing search index...

    Interface BimIfcLoaderElementParent

    Represents a BIM IFC Loader. Responsible for managing a collection of IFC files and loading data from them.

    interface BimIfcLoaderElementParent {
        classes: ModelProductClass[];
        disciplines: Discipline[];
        floors: BimIfcBuildingStorey[];
        loaderElements: IBimIfcLoaderElement[];
        projects: BimIfcObject[];
        spaces: BimIfcSpace[];
        addOrGetIfcProductCache<T extends BimIfcObject = BimIfcObject>(
            key: string,
            predicate: BimIfcObjectForEachPredicate,
        ): DeepImmutable<Set<T>>;
        clear(): void;
        deleteIfcProductCache(key: string): boolean;
        geometryBuilder(
            options?:
                | GeometryBuilderOptions
                | ((ifcProduct: BimIfcObject) => unknown),
        ): Promise<IfcGeometryBuilder>;
    }

    Implemented by

    Index

    Properties

    Gets all the IFC classes used by IFC products in the currently loaded IFC files.

    An array of BimIfcClass objects representing the available classes.

    disciplines: Discipline[]

    Gets the available disciplines.

    An array of Discipline objects.

    Gets the floors (IfcBuildingStorey) available in the currently loaded IFC files.

    An array of BimIfcBuildingStorey objects representing the available floors (storey levels).

    loaderElements: IBimIfcLoaderElement[]

    Gets the IBimIfcLoaderElement for the loaded IFC files.

    An array of IBimIfcLoaderElement objects.

    projects: BimIfcObject[]

    Gets the IfcProject root nodes from each loaded IFC file.

    These can then be used to traverse the IFC file structure by calling BimIfcObject.foreach, or BimIfcObject.entries on each project.

    An array of BimIfcObject representing the projects.

    spaces: BimIfcSpace[]

    Gets the spaces (IfcSpace) available in the currently loaded IFC files.

    An array of BimIfcSpace objects.

    Methods

    • Deletes a cache created by addOrGetIfcProductCache-

      Parameters

      • key: string

        Cache to delete

      Returns boolean

      true if a cache was deleted, otherwise false.