Face4.html 1.9 KB

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