T8ProductWithGeometry <TEntity>
Hierarchy
- T8Product<TEntity>
- T8ProductWithGeometry
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Type parameters
- TEntity: ModelEntityType = T8EntityType<T8Unit>
Parameters
localId: number
globalId: string
className: string
data: Record<string, string | number | boolean>
optionalpropertySets: Record<string, T8PropertySet<T8Unit>>
optionalcomputedPropertySets: Record<string, T8PropertySet<T8Unit>>
optionalquantities: Record<string, T8QuantitySet<T8Unit>>
optionalname: string
optionaldescription: string
optionaltag: string
meshes: T8Mesh[] = []
polylines: readonly ModelPolyline[] = T8ProductWithGeometry._emptyPolylineViews
Returns T8ProductWithGeometry<TEntity>
Properties
publicreadonlyaggregates
Products that are aggregated by this product
publicclassName
Class name (e.g., 'IfcWall', 'IfcDoor')
publiccomputedPropertySets
Computed property sets (e.g., Pset_Twinfinity_Aggregates)
publicreadonlycontains
Products that are contained within this product (spatial containment)
publicdata
Custom data values attached to this product
publicoptionaldefinedByType
The entity type (class) this product is an instance of
publicdescription
Optional description of the product
facility
The IfcBuilding (or IfcFacility) ancestor of this product.
facilityPart
The IfcBuildingStorey (or IfcFacilityPart) ancestor of this product.
publicglobalId
Global unique identifier (GUID)
publiclocalId
Local numerical identifier within the model
publicname
Optional name of the product
parent
Closest parent in the spatial/aggregation hierarchy.
publicpropertySets
Property sets (e.g., Pset_WallCommon)
publicquantities
Quantity sets (e.g., Qto_WallBaseQuantities)
site
The IfcSite ancestor of this product.
publicoptionaltag
Optional tag identifier
Accessors
children
All child products regardless of relationship type.
Returns Iterable<T8Product<TEntityType, TUnit>, any, any>
class
Parsed class with category information. Reference equality can be used for comparison.
Returns ModelProductClass
hasGeometry
True if this product has at least one mesh with geometry data.
Returns boolean
hasStructuredRelationships
True when aggregates and contains carry structured IFC relationship data (
IfcRelAggregates/IfcRelContainedInSpatialStructure). When false, only children is populated.Returns boolean
meshes
Geometry meshes belonging to this product.
Returns readonly T8Mesh[]
polylines
Returns readonly ModelPolyline[]
quantitySets
IFC quantity sets (e.g.
Qto_WallBaseQuantities).Returns Record<string, T8QuantitySet<TUnit>>
publictype
The entity type definition this product is an instance of (e.g. an
IfcWallType).Returns undefined | TEntityType
Methods
publicstaticconnect
Type parameters
- TEntityType
- TUnit
Parameters
dto: T8ClientProductConnectionsDTO<T8Product<TEntityType, TUnit>, TEntityType>
product: T8Product<TEntityType, TUnit>
Returns void
publicstaticcreate
Type parameters
- TEntityType
- TUnit
Parameters
dto: T8ClientProductDTO<TUnit>
Returns T8Product<TEntityType, TUnit>
staticcreateWithMeshes
Parameters
dto: T8ClientProductDTO<T8Unit>
meshes: T8Mesh[]
polylines: readonly ModelPolyline[] = T8ProductWithGeometry._emptyPolylineViews
Returns T8ProductWithGeometry<T8EntityType<T8Unit>>
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.