Mesh
A triangular polygon mesh. Combines a BufferGeometry with a Material.
Extends Object3D.
Constructor
const mesh = new Mesh(geometry?, material?)
// defaults: new BufferGeometry(), new MeshStandardMaterial()
Properties
isMesh— Type flag (true)geometry— BufferGeometrymaterial— Material or Array<Material>morphTargetDictionary—{name: index}map (set automatically if geometry has morph targets)morphTargetInfluences— Array of weights [0-1] for morph targetscount— Instance count (for WebGPU instancing, default1)
Methods
updateMorphTargets()— Detect and setup morph targets from geometrygetVertexPosition(index, target)— Get vertex position accounting for morph targetsraycast(raycaster, intersects)— Ray intersection testcopy(source, recursive?)— Copy mesh data