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

Hierarchy

  • Object

Implements

Constructors

  • Constructs a new instance of Object.

    Parameters

    • vim: Vim

      The Vim instance.

    • element: number

      The element index.

    • instances: number[]

      An optional array of instance numbers.

    • meshes: Submesh[]

      An optional array of submeshes.

    Returns Object

Properties

element: number

The bim element index associated with this object.

instances: number[]

The geometry instances associated with this object.

type: ObjectType = "Architectural"

Indicate whether this object is architectural or markup.

vim: Vim

The vim object from which this object came from.

Accessors

  • get color(): Color
  • Gets or sets the display color of this object.

    Returns

    The current color of the object.

    Returns Color

  • set color(color: Color): void
  • Gets or sets the display color of this object.

    Param

    The color to apply. Pass undefined to revert to the default color.

    Returns

    The current color of the object.

    Parameters

    • color: Color

    Returns void

  • get hasMesh(): boolean
  • Checks if this object has associated geometry.

    Returns

    True if this object has geometry, otherwise false.

    Returns boolean

Methods

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

    Throws

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

    Parameters

    • mesh: Submesh

      The new mesh to be added.

    Returns void

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

    Returns

    An object containing the bim data for this element.

    Returns Promise<IElement>

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

    Returns

    An array of all bim parameters for this elements.

    Returns Promise<ElementParameter[]>

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

    Returns

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

    Returns Box3

  • Retrieves the center position of this object.

    Returns

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

    Parameters

    • Optional target: Vector3 = ...

    Returns Vector3

Generated using TypeDoc