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

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<NormalBufferAttributes>,
    Material | Material[],
    Object3DEventMap,
>

the wrapped THREE mesh

submeshes: number[]

startPosition of each submesh on a merged mesh.

Vim file from which this mesh was created.

Methods

  • Parameters

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

    Returns Mesh

  • Parameters

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

    Returns Mesh