[page:Object3D] →

# [name]

Base class for Mesh objects, such as [page:MorphAnimMesh] and [page:SkinnedMesh].

## Example

`var geometry = new THREE.BoxGeometry( 1, 1, 1 ); var material = new THREE.MeshBasicMaterial( { color: 0xffff00 } ); var mesh = new THREE.Mesh( geometry, material ); scene.add( mesh );`

## Constructor

### [name]( [page:Geometry geometry], [page:Material material] )

geometry — An instance of [page:Geometry].
material — An instance of [page:Material] (optional).

## Properties

### [property:Geometry geometry]

An instance of [page:Geometry], defining the object's structure.

### [property:Material material]

An instance of [page:Material], defining the object's appearance. Default is a [page:MeshBasicMaterial] with wireframe mode enabled and randomised colour.

### [property:Array morphTargetInfluences]

An array of weights typically from 0-1 that specify how much of the morph is applied. Undefined by default, but reset to a blank array by [page:Mesh.updateMorphTargets updateMorphTargets].

### [property:Array morphTargetDictionary]

A dictionary of morphTargets based on the morphTarget.name property. Undefined by default, but rebuilt [page:Mesh.updateMorphTargets updateMorphTargets].

### [property:Integer morphTargetBase]

Specify the index of the morph that should be used as the base morph. Replaces the positions. Undefined by default, but reset to -1 (non set) by [page:Mesh.updateMorphTargets updateMorphTargets].

## Methods

### [method:Integer getMorphTargetIndexByName]( [page:String name] )

name — a morph target name
Returns the index of a morph target defined by name.

### [method:null updateMorphTargets]()

Updates the morphtargets to have no influence on the object. Resets the [page:Mesh.morphTargetForcedOrder morphTargetForcedOrder], [page:Mesh.morphTargetInfluences morphTargetInfluences], [page:Mesh.morphTargetDictionary morphTargetDictionary], and [page:Mesh.morphTargetBase morphTargetBase] properties.

### [method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )

Get intersections between a casted ray and this mesh. [page:Raycaster.intersectObject] will call this method.

### [method:Mesh clone]()

Returns a clone of this Mesh object and its descendants.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]