Theme:

Mesh

A triangular polygon mesh. Combines a BufferGeometry with a Material.

Extends Object3D.

Constructor

const mesh = new Mesh(geometry?, material?)
// defaults: new BufferGeometry(), new Material()

Properties

  • isMesh — Type flag (true)
  • geometry — BufferGeometry
  • material — Material or Array<Material>
  • count — Instance count (for WebGPU instancing, default 1)
  • boundingBoxWorld - world bounding box, used for culling, raycasting.

Methods

  • copy(source, recursive?) — Copy mesh data