[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
.[page:Geometry geometry]
An instance of [page:Geometry], defining the object's structure.
.[page:Material material]
An instance of [page:Material], defining the object's appearance. Default is a [page:MeshBasicMaterial] with wireframe mode enabled and randomised colour.
Methods
.getMorphTargetIndexByName( [page:String name] )
name — a morph target name
Returns the index of a morph target defined by name.
.updateMorphTargets()
Updates the morphtargets to have no influence on the object.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]