diff --git a/docs/api/en/helpers/VertexTangentsHelper.html b/docs/api/en/helpers/VertexTangentsHelper.html new file mode 100644 index 0000000000000000000000000000000000000000..fe5f3c3575865341c14c79f97e3f5e4c69c4a02b --- /dev/null +++ b/docs/api/en/helpers/VertexTangentsHelper.html @@ -0,0 +1,81 @@ + + +
+ +
+ Renders arrows to visualize an object's vertex tangent vectors.
+ Requires that tangents have been specified in a [page:BufferAttribute custom attribute] or
+ have been calculated using [page:BufferGeometryUtils.computeTangents computeTangents].
+
+ This helper supports [page:BufferGeometry] only.
+
+ var geometry = new THREE.BoxBufferGeometry( 10, 10, 10, 2, 2, 2 );
+ var material = new THREE.MeshNormalMaterial();
+ var box = new THREE.Mesh( geometry, material );
+
+ var helper = new THREE.VertexTangentsHelper( box, 1, 0x00ffff, 1 );
+
+ scene.add( box );
+ scene.add( helper );
+
+
+
+
+ [page:Object3D object] -- object for which to render vertex tangents.
+ [page:Number size] -- (optional) length of the arrows. Default is *1*.
+ [page:Hex color] -- hex color of the arrows. Default is 0x00ffff.
+ [page:Number linewidth] -- (optional) width of the arrow lines. Default is *1*. (Setting lineWidth is currently not supported.)
+
See the base [page:LineSegments] class for common properties.
+ ++ See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the + objects's [page:Object3D.matrixWorld matrixWorld]. +
+ +The object for which the vertex tangents are being visualized.
+ +Length of the arrows. Default is *1*.
+ + +See the base [page:LineSegments] class for common methods.
+ + +Updates the vertex tangents preview based on the object's world transform.
+ + ++ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] +
+ + diff --git a/docs/api/zh/helpers/VertexTangentsHelper.html b/docs/api/zh/helpers/VertexTangentsHelper.html new file mode 100644 index 0000000000000000000000000000000000000000..fe5f3c3575865341c14c79f97e3f5e4c69c4a02b --- /dev/null +++ b/docs/api/zh/helpers/VertexTangentsHelper.html @@ -0,0 +1,81 @@ + + + + +
+ Renders arrows to visualize an object's vertex tangent vectors.
+ Requires that tangents have been specified in a [page:BufferAttribute custom attribute] or
+ have been calculated using [page:BufferGeometryUtils.computeTangents computeTangents].
+
+ This helper supports [page:BufferGeometry] only.
+
+ var geometry = new THREE.BoxBufferGeometry( 10, 10, 10, 2, 2, 2 );
+ var material = new THREE.MeshNormalMaterial();
+ var box = new THREE.Mesh( geometry, material );
+
+ var helper = new THREE.VertexTangentsHelper( box, 1, 0x00ffff, 1 );
+
+ scene.add( box );
+ scene.add( helper );
+
+
+
+
+ [page:Object3D object] -- object for which to render vertex tangents.
+ [page:Number size] -- (optional) length of the arrows. Default is *1*.
+ [page:Hex color] -- hex color of the arrows. Default is 0x00ffff.
+ [page:Number linewidth] -- (optional) width of the arrow lines. Default is *1*. (Setting lineWidth is currently not supported.)
+
See the base [page:LineSegments] class for common properties.
+ ++ See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the + objects's [page:Object3D.matrixWorld matrixWorld]. +
+ +The object for which the vertex tangents are being visualized.
+ +Length of the arrows. Default is *1*.
+ + +See the base [page:LineSegments] class for common methods.
+ + +Updates the vertex tangents preview based on the object's world transform.
+ + ++ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] +
+ + diff --git a/docs/list.js b/docs/list.js index 407c958574a82b72b377e6fde1a3f8575ea4765c..6bcf7b42e9c833343f5564f07e89347508cafe1e 100644 --- a/docs/list.js +++ b/docs/list.js @@ -202,7 +202,8 @@ var list = { "RectAreaLightHelper": "api/en/helpers/RectAreaLightHelper", "SkeletonHelper": "api/en/helpers/SkeletonHelper", "SpotLightHelper": "api/en/helpers/SpotLightHelper", - "VertexNormalsHelper": "api/en/helpers/VertexNormalsHelper" + "VertexNormalsHelper": "api/en/helpers/VertexNormalsHelper", + "VertexTangentsHelper": "api/en/helpers/VertexTangentsHelper" }, "Lights": {