@twinfinity/core
    Preparing search index...

    Class T8ProductWithGeometry<TEntity>

    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.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    aggregates: readonly T8Product<TEntity, T8Unit>[]

    Products that are aggregated by this product

    className: string

    Class name (e.g., 'IfcWall', 'IfcDoor')

    computedPropertySets: Record<string, T8PropertySet<TUnit>>

    Computed property sets (e.g., Pset_Twinfinity_Aggregates)

    contains: readonly T8Product<TEntity, T8Unit>[]

    Products that are contained within this product (spatial containment)

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

    Custom data values attached to this product

    definedByType?: TEntity

    The entity type (class) this product is an instance of

    description: undefined | string

    Optional description of the product

    facility: undefined | T8Product<TEntity, T8Unit>

    The IfcBuilding (or IfcFacility) ancestor of this product.

    facilityPart: undefined | T8Product<TEntity, T8Unit>

    The IfcBuildingStorey (or IfcFacilityPart) ancestor of this product.

    globalId: string

    Global unique identifier (GUID)

    localId: number

    Local numerical identifier within the model

    name: undefined | string

    Optional name of the product

    parent: undefined | T8Product<TEntity, T8Unit>

    Closest parent in the spatial/aggregation hierarchy.

    propertySets: Record<string, T8PropertySet<TUnit>>

    Property sets (e.g., Pset_WallCommon)

    quantities: Record<string, T8QuantitySet<TUnit>>

    Quantity sets (e.g., Qto_WallBaseQuantities)

    site: undefined | T8Product<TEntity, T8Unit>

    The IfcSite ancestor of this product.

    tag?: string

    Optional tag identifier

    Accessors

    • get hasGeometry(): boolean

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

      Returns boolean

    • get hasStructuredRelationships(): boolean

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

      Returns boolean

    • get meshes(): readonly T8Mesh[]

      Geometry meshes belonging to this product.

      Returns readonly T8Mesh[]

    • get type(): undefined | TEntityType

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

      Returns undefined | TEntityType

    Methods