@twinfinity/core
    Preparing search index...

    Class BimIfcSpace

    This class contains the structure of an IFC Object

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Returns the class object for IFC-product

    computedPropertySets: Record<string, T8PropertySet<T8Unit>> = emptyRecord

    Computed property sets added by Twinfinity processing.

    enclosingFloor?: BimIfcBuildingStorey
    entityLabelInIfc: string
    hasGeometry: boolean

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

    ifcLoaderElement: IBimIfcLoaderElement
    parents: BimIfcObject[]
    propertySets: Record<string, T8PropertySet<T8Unit>> = emptyRecord

    IFC property sets (e.g. Pset_WallCommon).

    quantitySets: Record<string, T8QuantitySet<T8Unit>> = emptyRecord

    IFC quantity sets (e.g. Qto_WallBaseQuantities).

    rawProduct: BimProduct
    visible: (visible?: boolean, meshes?: BimProductMesh[]) => boolean

    Returns true if object is visible

    Accessors

    • get calculatedArea(): number

      Returns number

    • get childCount(): number

      Returns number

    • get className(): string

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

      Returns string

    • get data(): Record<string, boolean | number | string>

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

      Returns Record<string, boolean | number | string>

    • get description(): string

      Returns string

    • get discipline(): Discipline

      Returns the discipline class for this IFC-product

      Returns Discipline

    • get elevationWithFlooring(): number

      Returns number

    • get facility(): undefined | BimIfcObject

      The IfcBuilding (or IfcFacility) ancestor of this product.

      Returns undefined | BimIfcObject

    • get facilityPart(): undefined | BimIfcBuildingStorey

      The IfcBuildingStorey (or IfcFacilityPart) ancestor of this product.

      Returns undefined | BimIfcBuildingStorey

    • get gid(): string

      Returns string

    • get globalId(): string

      IFC GlobalId (GUID), unique across all models.

      Returns string

    • get hasStructuredRelationships(): boolean

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

      Returns boolean

    • get localId(): number

      Numerical identifier, unique within a single model.

      Returns number

    • get longname(): undefined | string

      Returns undefined | string

    • get meshes(): readonly BimProductMesh[]

      Geometry meshes belonging to this product.

      Returns readonly BimProductMesh[]

    • get name(): string

      Returns name of IFC-product

      Returns string

    • get parent(): undefined | BimIfcObject

      Get the closest parent in the IFC hiearchy. Equivalent of

      Returns undefined | BimIfcObject

      const parent = bimIfcObject.parents[bimIfcObjects.parents.length -1];
      
    • get site(): undefined | BimIfcObject

      The IfcSite ancestor of this product.

      Returns undefined | BimIfcObject

    • get spaceType(): undefined | string

      Returns undefined | string

    • get type(): undefined | BimTypeObject

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

      Returns undefined | BimTypeObject

    Methods

    • 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

    • 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[]

    • 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

    • Remove the IFC object and its children from the IFC hiearchy.

      Returns void