|
@@ -11,36 +11,46 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">todo</div>
|
|
|
|
|
|
+ <div class="desc">Renders [page:ArrowHelper arrows] to visualize an object's vertex tangent vectors. Requires that tangents have been specified in a [page:BufferAttribute custom attribute] or have been computed using [page:Geometry.computeTangents computeTangents]. </div>
|
|
|
|
|
|
<h2>Example</h2>
|
|
<h2>Example</h2>
|
|
|
|
|
|
- <code>todo</code>
|
|
|
|
|
|
+ <code>
|
|
|
|
+ geometry = new THREE.BoxGeometry( 10, 10, 10, 2, 2, 2 );
|
|
|
|
+ material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
|
|
|
|
+ object = new THREE.Mesh( geometry, material );
|
|
|
|
+
|
|
|
|
+ edges = new THREE.VertexTangentsHelper( object, 2, 0x00ff00, 1 );
|
|
|
|
+
|
|
|
|
+ scene.add( object );
|
|
|
|
+ scene.add( edges );
|
|
|
|
+ </code>
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
|
|
|
|
- <h3>todo</h3>
|
|
|
|
- <div></div>
|
|
|
|
|
|
+ <h3>[name]( [page:Object3D object], [page:Number size], [page:Color color], [page:Number linewidth] )</h3>
|
|
|
|
+ <div>object -- object for which to render vertex tangents
|
|
|
|
+ size -- size (length) of the arrows
|
|
|
|
+ color -- color of the arrows
|
|
|
|
+ linewidth -- width of the arrow lines
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
|
<h2>Properties</h2>
|
|
<h2>Properties</h2>
|
|
|
|
|
|
- <h3>todo</h3>
|
|
|
|
|
|
+ <h3>[property:Object3D object]</h3>
|
|
<div>
|
|
<div>
|
|
- todo
|
|
|
|
|
|
+ The attached object
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2>Methods</h2>
|
|
<h2>Methods</h2>
|
|
|
|
|
|
|
|
|
|
- <h3>todo</h3>
|
|
|
|
- <div>todo</div>
|
|
|
|
- <div>
|
|
|
|
- todo
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ <h3>[method:null update]()</h3>
|
|
|
|
+ <div>Updates the vertex tangent preview arrows based on the new position and tangents of the object.</div>
|
|
|
|
+
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|