2
0

Face3.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">
  12. Triangle face.
  13. </div>
  14. <h2>Example</h2>
  15. <code>var normal = new THREE.Vector3( 0, 1, 0 );
  16. var color = new THREE.Color( 0xffaa00 );
  17. var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );</code>
  18. <h2>Constructor</h2>
  19. <h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer materialIndex] )</h3>
  20. <div>
  21. a — Vertex A index.<br />
  22. b — Vertex B index.<br />
  23. c — Vertex C index.<br />
  24. normal — Face normal or array of vertex normals.<br />
  25. color — Face color or array of vertex colors.<br />
  26. materialIndex — Material index.
  27. </div>
  28. <h2>Properties</h2>
  29. <h3>.[page:Integer a]</h3>
  30. <div>
  31. Vertex A index.
  32. </div>
  33. <h3>.[page:Integer b]</h3>
  34. <div>
  35. Vertex B index.
  36. </div>
  37. <h3>.[page:Integer c]</h3>
  38. <div>
  39. Vertex C index.
  40. </div>
  41. <h3>.[page:Vector3 normal]</h3>
  42. <div>
  43. Face normal.
  44. </div>
  45. <h3>.[page:Color color]</h3>
  46. <div>
  47. Face color.
  48. </div>
  49. <h3>.[page:Array vertexNormals]</h3>
  50. <div>
  51. Array of 3 vertex normals.
  52. </div>
  53. <h3>.[page:Array vertexColors]</h3>
  54. <div>
  55. Array of 3 vertex colors.
  56. </div>
  57. <h3>.[page:Array vertexTangents]</h3>
  58. <div>
  59. Array of 3 vertex tangents.
  60. </div>
  61. <h3>.[page:Integer materialIndex]</h3>
  62. <div>
  63. Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
  64. </div>
  65. <h2>Methods</h2>
  66. <h3>.clone()</h3>
  67. <div>
  68. Creates a new clone of the Face3 object.
  69. </div>
  70. <h2>Source</h2>
  71. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  72. </body>
  73. </html>