Face3.html 1.7 KB

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