Face3.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  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. <p class="desc">
  12. Triangular face used in deprecated geometry. These are created automatically for all
  13. standard geometry types, however if you are building a custom geometry you will have to
  14. create them manually.
  15. </p>
  16. <h2>Constructor</h2>
  17. <h3>[name]( [param:Integer a], [param:Integer b], [param:Integer c], [param:Vector3 normal], [param:Color color], [param:Integer materialIndex] )</h3>
  18. <p>
  19. a — Vertex A index.<br />
  20. b — Vertex B index.<br />
  21. c — Vertex C index.<br /><br />
  22. normal — (optional) Face normal ([page:Vector3 Vector3]) or array of vertex normals.
  23. If a single vector is passed in, this sets [page:.normal], otherwise if an array of three
  24. vectors is passed in this sets [page:.vertexNormals]<br /><br />
  25. color — (optional) Face [page:Color color] or array of vertex [page:Color colors].
  26. If a single vector is passed in, this sets [page:.color], otherwise if an array of three
  27. vectors is passed in this sets [page:.vertexColors]<br /><br />
  28. materialIndex — (optional) which index of an array of materials to associate
  29. with the face.
  30. </p>
  31. <h2>Properties</h2>
  32. <h3>[property:Integer a]</h3>
  33. <p>
  34. Vertex A index.
  35. </p>
  36. <h3>[property:Integer b]</h3>
  37. <p>
  38. Vertex B index.
  39. </p>
  40. <h3>[property:Integer c]</h3>
  41. <p>
  42. Vertex C index.
  43. </p>
  44. <h3>[property:Vector3 normal]</h3>
  45. <p>
  46. Face normal - vector showing the direction of the Face3. If calculated automatically,
  47. this is the normalized cross product of two edges of the
  48. triangle. Default is *(0, 0, 0)*.
  49. </p>
  50. <h3>[property:Color color]</h3>
  51. <p>
  52. Face color - for this to be used a material's [page:Material.vertexColors vertexColors] property
  53. must be set to *true*.
  54. </p>
  55. <h3>[property:Array vertexNormals]</h3>
  56. <p>
  57. Array of 3 [page:Vector3 vertex normals].
  58. </p>
  59. <h3>[property:Array vertexColors]</h3>
  60. <p>
  61. Array of 3 vertex colors - for these to be used a material's [page:Material.vertexColors vertexColors] property
  62. must be set to *true*.
  63. </p>
  64. <h3>[property:Integer materialIndex]</h3>
  65. <p>
  66. Material index (points to an index in the associated array of materials). Default is *0*.
  67. </p>
  68. <h2>Methods</h2>
  69. <h3>[method:Face3 clone]()</h3>
  70. <p>Creates a new clone of the Face3 object.</p>
  71. <h3>[method:Face3 copy]( [param:Face3 face3] )</h3>
  72. <p>Copy the parameters of another Face3 into this.</p>
  73. <h2>Source</h2>
  74. <p>
  75. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  76. </p>
  77. </body>
  78. </html>