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.

Hierarchy

  • Vim

Constructors

  • Constructs a new instance of a Vim object with the provided parameters.

    Parameters

    • header: VimHeader

      The Vim header, if available.

    • document: VimDocument

      The Vim document.

    • g3d: G3d

      The G3d object, if available.

    • scene: Scene

      The scene containing the vim's geometry.

    • settings: VimSettings

      The settings used to open this vim.

    • map: ElementMapping | ElementNoMapping | ElementMapping2

      The element mapping.

    • builder: SubsetBuilder

      The subset builder for constructing subsets of the Vim object.

    • source: string

      The source of the Vim object.

    • format: VimFormat

      The format of the Vim object.

    • isLegacy: boolean

      Indicates whether the Vim object uses a legacy loading pipeline.

    Returns Vim

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.

isLegacy: boolean

Indicates whether the vim was opened using the legacy pipeline or not.

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

  • get isLoading(): boolean
  • Indicates whether there are subsets currently being loaded.

    Returns

    True if subsets are being loaded; otherwise, false.

    Returns boolean

  • get onDispose(): ISignal
  • Getter for accessing the signal dispatched when the object is disposed.

    Returns

    The signal for disposal events.

    Returns ISignal

  • get onLoadingUpdate(): ISignal
  • Getter for accessing the event dispatched whenever a subset begins or finishes loading.

    Returns

    The event dispatcher for loading updates.

    Returns ISignal

Methods

  • Retrieves the matrix representation of the Vim object's position, rotation, and scale.

    Returns

    The matrix representing the Vim object's transformation.

    Returns Matrix4

  • Retrieves the Vim object associated with the given Vim element index.

    Returns

    The Vim object corresponding to the element index, or undefined if not found.

    Parameters

    • element: number

      The index of the Vim element.

    Returns Object

  • Retrieves the object associated with the specified instance number.

    Returns

    The object corresponding to the instance, or undefined if not found.

    Parameters

    • instance: number

      The instance number of the object.

    Returns Object

  • Retrieves the objects associated with the specified element ID.

    Returns

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

    Parameters

    • id: number

      The element ID to retrieve objects for.

    Returns any

  • Retrieves an array containing all Vim objects strictly contained within the specified bounding box.

    Returns

    An array of Vim objects strictly contained within the bounding box.

    Parameters

    • box: Box3

      The bounding box to search within.

    Returns Object[]

  • Retrieves an array containing all objects within the specified subset.

    Returns

    An array of objects within the specified subset.

    Parameters

    • subset: G3dSubset

      The subset to retrieve objects from.

    Returns Object[]

  • Asynchronously loads all geometry according to the provided settings.

    Parameters

    • Optional settings: Partial<LoadSettings>

      Optional settings for the loading process.

    Returns Promise<void>

  • 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.

    • Optional settings: Partial<LoadSettings>

      Optional settings for the loading process.

    Returns Promise<void>

  • Asynchronously loads geometry for the specified subset according to the provided settings.

    Parameters

    • subset: G3dSubset

      The subset to load resources for.

    • Optional settings: Partial<LoadSettings>

      Optional settings for the loading process.

    Returns Promise<void>

Generated using TypeDoc