Face4.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. Quad 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.Face4( 0, 1, 2, 3, normal, color, 0 );</code>
  18. <h2>Constructor</h2>
  19. <h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Integer d], [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. d — Vertex D index.<br />
  25. normal — Face normal or array of vertex normals.<br />
  26. color — Face color or array of vertex colors.<br />
  27. materialIndex — Material index.
  28. </div>
  29. <h2>Properties</h2>
  30. <h3>.[page:Integer a]</h3>
  31. <div>
  32. Vertex A index.
  33. </div>
  34. <h3>.[page:Integer b]</h3>
  35. <div>
  36. Vertex B index.
  37. </div>
  38. <h3>.[page:Integer c]</h3>
  39. <div>
  40. Vertex C index.
  41. </div>
  42. <h3>.[page:Integer d]</h3>
  43. <div>
  44. Vertex D index.
  45. </div>
  46. <h3>.[page:Vector3 normal]</h3>
  47. <div>
  48. Face normal.
  49. </div>
  50. <h3>.[page:Color color]</h3>
  51. <div>
  52. Face color.
  53. </div>
  54. <h3>.[page:Array vertexNormals]</h3>
  55. <div>
  56. Array of 4 vertex normals.
  57. </div>
  58. <h3>.[page:Array vertexColors]</h3>
  59. <div>
  60. Array of 4 vertex colors.
  61. </div>
  62. <h3>.[page:Array vertexTangents]</h3>
  63. <div>
  64. Array of 4 vertex tangets.
  65. </div>
  66. <h3>.[page:Integer materialIndex]</h3>
  67. <div>
  68. Material index (points to [page:Geometry Geometry.materials]).
  69. </div>
  70. <h3>.[page:Vector3 centroid]</h3>
  71. <div>
  72. Face centroid.
  73. </div>
  74. <h2>Methods</h2>
  75. <h3>.clone()</h3>
  76. <div>
  77. Creates a new clone of the Face4 object.
  78. </div>
  79. <h2>Source</h2>
  80. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  81. </body>
  82. </html>