Class ElementMapping2

Constructors

Methods

  • Retrieves the element index associated with the g3d instance index.

    Parameters

    • instance: number

      The g3d instance index.

    Returns number

    The element index associated with the instance, or undefined if not found.

  • Retrieves the element ID associated with the specified element index.

    Parameters

    • element: number

      The element index.

    Returns bigint

    The element ID associated with the element index, or undefined if not found.

  • Retrieves element indices associated with the given element ID.

    Parameters

    • id: number | bigint

      The element ID.

    Returns any

    An array of element indices associated with the element ID, or undefined if no elements are associated with the ID.

  • Retrieves instance indices associated with the specified vim element index.

    Parameters

    • element: number

      The vim element index.

    Returns number[]

    An array of instance indices associated with the vim element index, or undefined if the element does not exist in the vim.