12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- [page:Object3D] →
- <h1>[name]</h1>
- <div class="desc">Base class for Mesh objects, such as [page:MorphAnimMesh] and [page:SkinnedMesh].</div>
- <h2>Example</h2>
- <code>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 );
- </code>
- <h2>Constructor</h2>
- <h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
- <div>
- geometry — An instance of [page:Geometry].<br />
- material — An instance of [page:Material] (optional).
- </div>
- <h2>Properties</h2>
- <h3>.[page:Geometry geometry]</h3>
- <div>An instance of [page:Geometry], defining the object's structure.</div>
- <h3>.[page:Material material]</h3>
- <div>An instance of [page:Material], defining the object's appearance. Default is a [page:MeshBasicMaterial] with wireframe mode enabled and randomised colour.</div>
- <h2>Methods</h2>
- <h3>.getMorphTargetIndexByName( [page:String name] )</h3>
- <div>
- name — a morph target name<br />
- </div>
- <div>
- Returns the index of a morph target defined by name.
- </div>
- <h3>.updateMorphTargets()</h3>
- <div>
- Updates the morphtargets to have no influence on the object.
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|