High level api to interact with the loaded vim geometry and data.

Constructors

Properties

element: number

The bim element index associated with this object.

instances: number[]

The geometry instances associated with this object.

type: "Object3D" = 'Object3D'

Indicate whether this object is architectural or markup.

The vim object from which this object came from.

Accessors

Methods

  • Internal method used to replace this object's meshes and apply color as needed.

    Parameters

    • mesh: Submesh

      The new mesh to be added.

    Returns void

    Throws an error if the provided mesh instance does not match any existing instances.

  • Asynchronously retrieves Bim parameters for the element associated with this object.

    Returns Promise<ElementParameter[]>

    An array of all bim parameters for this elements.

  • Retrieves the bounding box of the object from cache or computes it if needed. Returns undefined if the object has no geometry.

    Returns Box3

    The bounding box of the object, or undefined if the object has no geometry.

  • Retrieves the center position of this object.

    Parameters

    • Optionaltarget: Vector3 = ...

      Optional parameter specifying where to copy the center position data. A new instance is created if none is provided.

    Returns Vector3

    The center position of the object, or undefined if the object has no geometry.

MMNEPVFCICPMFPCPTTAAATR