Face3.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">
  13. Triangle face.
  14. </div>
  15. <h2>Example</h2>
  16. <code>var normal = new THREE.Vector3( 0, 1, 0 );
  17. var color = new THREE.Color( 0xffaa00 );
  18. var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );</code>
  19. <h2>Constructor</h2>
  20. <h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer materialIndex] )</h3>
  21. <div>
  22. a — Vertex A index.<br />
  23. b — Vertex B index.<br />
  24. c — Vertex C 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>[property:Integer a]</h3>
  31. <div>
  32. Vertex A index.
  33. </div>
  34. <h3>[property:Integer b]</h3>
  35. <div>
  36. Vertex B index.
  37. </div>
  38. <h3>[property:Integer c]</h3>
  39. <div>
  40. Vertex C index.
  41. </div>
  42. <h3>[property:Vector3 normal]</h3>
  43. <div>
  44. Face normal.
  45. </div>
  46. <h3>[property:Color color]</h3>
  47. <div>
  48. Face color.
  49. </div>
  50. <h3>[property:Array vertexNormals]</h3>
  51. <div>
  52. Array of 3 vertex normals.
  53. </div>
  54. <h3>[property:Array vertexColors]</h3>
  55. <div>
  56. Array of 3 vertex colors.
  57. </div>
  58. <h3>[property:Integer materialIndex]</h3>
  59. <div>
  60. Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
  61. </div>
  62. <h2>Methods</h2>
  63. <h3>[method:Face3 clone]()</h3>
  64. <div>
  65. Creates a new clone of the Face3 object.
  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>