BimIfcSpace
Hierarchy
- BimIfcObject
- BimIfcSpace
Index
Constructors
Properties
Accessors
Methods
- aabb
- applyColor
- boundingInfo
- computeObjectBboxInWorldSpace
- copyColorTo
- copyColorsTo
- defaultColor
- deleteComputedPropertySet
- entries
- foreach
- geometricallyIntersects
- getColorComponent
- ghostOutline
- highlight
- isOnGpu
- mesh
- meshDescriptor
- remove
- setColor
- setColors
- setComputedPropertySet
- style
- transform
- vertexData
- create
- createGeometryFrom
- createGeometryFromAsync
Constructors
publicconstructor
Parameters
entityLabelInIfc: string
ifcLoaderElement: IBimIfcLoaderElement
rawProduct: BimProduct
parents: BimIfcObject[]
optionalenclosingFloor: BimIfcBuildingStorey
Returns BimIfcSpace
Properties
publicreadonlyclass
Returns the class object for IFC-product
publicreadonlycomputedPropertySets
Computed property sets added by Twinfinity processing.
publicoptionalreadonlyenclosingFloor
publicreadonlyentityLabelInIfc
publicreadonlyhasGeometry
True if this product has at least one mesh with geometry data.
publicreadonlyifcLoaderElement
publicreadonlyparents
publicreadonlypropertySets
IFC property sets (e.g. Pset_WallCommon).
publicreadonlyquantitySets
IFC quantity sets (e.g. Qto_WallBaseQuantities).
publicreadonlyrawProduct
publicreadonlyvisible
Returns true if object is visible
Type declaration
Parameters
optionalvisible: boolean
optionalmeshes: BimProductMesh[]
Returns boolean
Accessors
publicaggregates
Products related via
IfcRelAggregates(decomposition). Empty when hasStructuredRelationships is false.Returns readonly BimIfcObject[]
publicbbox
Returns SimpleBoundingBox
publicbuilding
Returns undefined | BimIfcObject
publiccalculatedArea
Returns number
publicchildCount
Returns number
publicchildren
All children IFC objects.
Returns BimIfcObject[]
publicclassName
Full IFC class name including prefix (e.g.
'IfcWall','IfcDoor').Returns string
publiccontains
Products related via
IfcRelContainedInSpatialStructure(spatial containment). Empty when hasStructuredRelationships is false.Returns readonly BimIfcObject[]
publicdata
Product-level scalar data values (e.g. operationType, objectPlacement).
Returns Record<string, string | number | boolean>
publicdescription
Returns string
publicdiscipline
Returns the discipline class for this IFC-product
Returns Discipline
publicelevationWithFlooring
Returns number
publicfacility
The
IfcBuilding(orIfcFacility) ancestor of this product.Returns undefined | BimIfcObject
publicfacilityPart
The
IfcBuildingStorey(orIfcFacilityPart) ancestor of this product.Returns undefined | BimIfcBuildingStorey
publicgid
Returns string
publicglobalId
IFC GlobalId (GUID), unique across all models.
Returns string
publichasStructuredRelationships
True when aggregates and contains carry structured IFC relationship data (
IfcRelAggregates/IfcRelContainedInSpatialStructure). When false, only children is populated.Returns boolean
publicifc
Returns BimChangeIfc
publiclocalId
Numerical identifier, unique within a single model.
Returns number
publiclongname
Returns undefined | string
publicmeshes
Geometry meshes belonging to this product.
Returns readonly BimProductMesh[]
publicname
Returns name of IFC-product
Returns string
publicparent
Get the closest parent in the IFC hiearchy. Equivalent of
Returns undefined | BimIfcObject
publicproductMeshes
Returns BimProductMesh[]
publicproject
Returns BimIfcObject
publicsite
The
IfcSiteancestor of this product.Returns undefined | BimIfcObject
publicspaceType
Returns undefined | string
publictype
The entity type definition this product is an instance of (e.g. an
IfcWallType).Returns undefined | BimTypeObject
Methods
publicaabb
Calculates the min and max value in the coordinate system.
Parameters
min: Vector3
Minimum bounding vector3
max: Vector3
Maximum bounding vector3
predicate: (o: BimIfcObject, recursionOptions: BimIfcObjectRecursionOptions) => unknown = DefaultBimIfcObjectForEachPredicate
?
noCache: boolean = true
If
true, transform caches will not be used.
Returns void
publicapplyColor
Returns void
publicboundingInfo
Parameters
optionalbI: BoundingInfo
predicate: (o: BimIfcObject, recursionOptions: BimIfcObjectRecursionOptions) => unknown = DefaultBimIfcObjectForEachPredicate
noCache: boolean = true
Returns BoundingInfo
publiccomputeObjectBboxInWorldSpace
- alpha
Aggregates a bbox from current objects meshes. This does not include related children. This is alpha. Expect changes. Will probably be replaced by one of the other bounding info functions.
Returns SimpleBoundingBox
publiccopyColorTo
Parameters
m: BimProductMesh
dst: Writeable<ArrayLike<number>>
dstOffset: number = 0
Returns void
publiccopyColorsTo
Parameters
dst: Pick<Map<BimProductMesh, Writeable<ArrayLike<number>>>, set | get>
Returns void
publicdefaultColor
Parameters
optionalmeshes: BimProductMesh[]
Returns boolean
publicdeleteComputedPropertySet
Parameters
name: string
Returns boolean
publicentries
Gets a iterator for all Ifc products currently loaded.
Returns IterableIterator<BimIfcObject, any, any>
publicforeach
Parameters
action: BimIfcObjectForEachAction
Returns void
publicgeometricallyIntersects
Checks intersections of an object (containing object) against an array of other objects.
Parameters
objects: BimIfcObject[]
Array of objects to test intersection against.
includeEnclosedObjects: boolean = true
Default is true, it includes geometries completely geometrically on the inside, in the returned result.
includeIntersectingObjects: boolean = true
Default is true, it includes geometries that intersects on border surface, in the returned result. If both enclosedObjects and intersectingObjects are false, the function will make a quick rough test based on bbox and return all objects intersecting and enclosing on bounding box level.
Returns BimIfcObject[]
publicgetColorComponent
Parameters
m: BimProductMesh
colorComponent: RgbaComponent
Returns number
publicghostOutline
Makes the object give an ghosty outline when either SSAO or line outlines are enabled. It does this by making the object invisible but also flag it to still write to the depth buffer used by the lines and SSAO
Parameters
enabled: boolean
If true the object will be hidden but will also be set to still write to the depth buffer
optionalmeshes: BimProductMesh[]
The specific meshes of the object to apply this method on
Returns boolean
A bool indicating if any of the objects meshes was changed as a result of this method call
publichighlight
Highlights the object
Parameters
highlightIndex: IfcMaterialHighlightIndex = IfcMaterialHighlightIndex.One
The highlight color index to use, setting it to zero means the mesh will not be highlighted
optionalmeshes: BimProductMesh[]
The meshes to highlight
Returns boolean
a boolean indicating if the object was changed from the highlighting
publicisOnGpu
Parameters
optionalmeshes: BimProductMesh[]
Returns boolean
publicmesh
Parameters
m: BimProductMesh
noCache: boolean = true
Returns BimIfcMesh
publicmeshDescriptor
Parameters
pM: BimProductMesh
Returns BimProductMeshDescriptor
publicremove
Remove the IFC object and its children from the IFC hiearchy.
Returns void
publicsetColor
Parameters
color: ArrayLike<number>
optionalmeshes: BimProductMesh[]
Returns boolean
publicsetColors
Parameters
src: Iterable<[BimProductMesh, ArrayLike<number>], any, any>
Returns boolean
publicsetComputedPropertySet
Parameters
name: string
set: T8PropertySet<T8Unit>
Returns void
publicstyle
Parameters
Returns BimIfcStyle
publictransform
Parameters
m: BimProductMesh
noCache: boolean = true
Returns Matrix
publicvertexData
Parameters
Returns VertexData
publicstaticcreate
Parameters
ifcLoaderElement: IBimIfcLoaderElement
Returns BimIfcObject
publicstaticcreateGeometryFrom
Creates a geometry consisting of all specified IFC objects (or specific meshes.).
Parameters
items: (BimIfcObject | { ifcObject: BimIfcObject; meshes: BimProductMesh[] })[]
All objects that will be combined. It is possible to optionally specify exactly which BimProductMesh that are to be used on each IFC object. If none is specified, then all meshes in the IFC objects are used. Geom. Items where BimIfcObject.isOnGpu ===
falsewill not be included in the final Geometry3d.
Returns Geometry3d
A Geometry3d instance that represents all geometry. Note that the geometry is in IFC space and not BabylonJS worldspace.
publicstaticcreateGeometryFromAsync
Creates a geometry consisting of all specified IFC objects (or specific meshes.).
Parameters
items: (BimIfcObject | { ifcObject: BimIfcObject; meshes: BimProductMesh[] })[]
All objects that will be combined. It is possible to specify multiple BimProductMesh to be used on each IFC object. If none are specified, then all meshes in the IFC objects are used. When BimIfcObject.isOnGpu ===
false, the geometry will automatically be loaded and included in the final Geometry3d.
Returns Promise<Geometry3d>
A Geometry3d instance that represents all geometry. Note that the geometry is in IFC space and not BabylonJS worldspace.
This class contains the structure of an IFC Object