Represents a container for the built three.js meshes and the vim data from which they were constructed. Facilitates high-level scene manipulation by providing access to objects.

Implements

Constructors

Properties

bim: VimDocument

The interface to access bim data related to this vim if available.

format: VimFormat

Indicates whether the vim was opened from a vim or vimx file.

g3d: G3d

The raw g3d geometry scene definition.

header: VimHeader

The header for this vim.

The mapping from Bim to Geometry for this vim.

scene: Scene

Mostly Internal - The scene in which the vim geometry is added.

settings: VimSettings

The settings used when this vim was opened.

source: string

Indicates the url this vim came from if applicable.

Accessors

Methods

  • Retrieves the objects associated with the specified element ID.

    Parameters

    • id: number

      The element ID to retrieve objects for.

    Returns any

    An array of objects corresponding to the element ID, or an empty array if none are found.

  • Asynchronously loads geometry based on a specified filter mode and criteria.

    Parameters

    • filterMode: FilterMode

      The mode of filtering to apply.

    • filter: number[]

      The filter criteria.

    • Optionalsettings: Partial<LoadSettings>

      Optional settings for the loading process.

    Returns Promise<void>