Wrapper around THREE.Mesh Keeps track of what VIM instances are part of this mesh. Is either merged on instanced.

Hierarchy

  • Mesh

Properties

boundingBox: Box3

Total bounding box for this mesh.

boxes: Box3[]

bounding box of each instance

ignoreSceneMaterial: boolean

Set to true to ignore SetMaterial calls.

instances: number[]

Indices of the g3d instances that went into creating the mesh

merged: boolean

Whether the mesh is merged or not.

mesh: Mesh<BufferGeometry, Material | Material[]>

the wrapped THREE mesh

submeshes: number[]

startPosition of each submesh on a merged mesh.

vim: Vim

Vim file from which this mesh was created.

Methods

  • Overrides mesh material, set to undefine to restore initial material.

    Parameters

    • value: Material

    Returns void

  • Parameters

    • mesh: Mesh<BufferGeometry, Material | Material[]>
    • instances: number[]
    • boxes: Box3[]

    Returns Mesh

  • Parameters

    • mesh: Mesh<BufferGeometry, Material | Material[]>
    • instances: number[]
    • boxes: Box3[]
    • submeshes: number[]

    Returns Mesh

Generated using TypeDoc