@twinfinity/core
    Preparing search index...

    Interface ModelProduct

    Read-only view of an IFC product (element) in a building model.

    This is the shared interface between the browser (@twinfinity/core) and server/Node.js (@twinfinity/t8-client-model) contexts, allowing business logic to be written once and consumed from both.

    interface ModelProduct {
        aggregates: readonly ModelProduct[];
        children: Iterable<ModelProduct>;
        class: ModelProductClass;
        className: string;
        computedPropertySets: Record<string, T8PropertySet<T8Unit>>;
        contains: readonly ModelProduct[];
        data: Record<string, boolean | number | string>;
        description?: string;
        facility?: ModelProduct;
        facilityPart?: ModelProduct;
        globalId: string;
        hasGeometry: boolean;
        hasStructuredRelationships: boolean;
        localId: number;
        meshes: readonly ModelMesh[];
        name?: string;
        parent?: ModelProduct;
        propertySets: Record<string, T8PropertySet<T8Unit>>;
        quantitySets: Record<string, T8QuantitySet<T8Unit>>;
        site?: ModelProduct;
        type?: ModelEntityType;
    }

    Implemented by

    Index

    Properties

    aggregates: readonly ModelProduct[]

    Products related via IfcRelAggregates (decomposition). Empty when hasStructuredRelationships is false.

    children: Iterable<ModelProduct>

    All child products regardless of relationship type.

    Parsed class with category information. Reference equality can be used for comparison.

    className: string

    Full IFC class name including prefix (e.g. 'IfcWall', 'IfcDoor').

    computedPropertySets: Record<string, T8PropertySet<T8Unit>>

    Computed property sets added by Twinfinity processing.

    contains: readonly ModelProduct[]

    Products related via IfcRelContainedInSpatialStructure (spatial containment). Empty when hasStructuredRelationships is false.

    data: Record<string, boolean | number | string>

    Product-level scalar data values (e.g. operationType, objectPlacement).

    description?: string
    facility?: ModelProduct

    The IfcBuilding (or IfcFacility) ancestor of this product.

    facilityPart?: ModelProduct

    The IfcBuildingStorey (or IfcFacilityPart) ancestor of this product.

    globalId: string

    IFC GlobalId (GUID), unique across all models.

    hasGeometry: boolean

    True if this product has at least one mesh with geometry data.

    hasStructuredRelationships: boolean

    True when aggregates and contains carry structured IFC relationship data (IfcRelAggregates / IfcRelContainedInSpatialStructure). When false, only children is populated.

    localId: number

    Numerical identifier, unique within a single model.

    meshes: readonly ModelMesh[]

    Geometry meshes belonging to this product.

    name?: string
    parent?: ModelProduct

    Closest parent in the spatial/aggregation hierarchy.

    propertySets: Record<string, T8PropertySet<T8Unit>>

    IFC property sets (e.g. Pset_WallCommon).

    quantitySets: Record<string, T8QuantitySet<T8Unit>>

    IFC quantity sets (e.g. Qto_WallBaseQuantities).

    The IfcSite ancestor of this product.

    The entity type definition this product is an instance of (e.g. an IfcWallType).