[page:Line] →

[name]

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].

Example

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 );

Constructor

[name]( [page:Object3D object], [page:Number size], [page:Color color], [page:Number linewidth] )

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

Properties

[property:Object3D object]

The attached object

Methods

[method:null update]()

Updates the vertex tangent preview arrows based on the new position and tangents of the object.

Source

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