[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.
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.
[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.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]