Face3.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Face3 - Triangle face
  2. ------------------------
  3. .. rubric:: Constructor
  4. .. class:: Face3( a, b, c, normal, color, materialIndex )
  5. Triangle face
  6. (indices start from zero)
  7. :param integer a: vertex A index
  8. :param integer b: vertex B index
  9. :param integer c: vertex C index
  10. :param varying normal: face normal or array of vertex normals
  11. :param varying color: face color or array of vertex colors
  12. :param integer materialIndex: material index
  13. .. rubric:: Attributes
  14. .. attribute:: Face3.a
  15. Vertex A index
  16. .. attribute:: Face3.b
  17. Vertex B index
  18. .. attribute:: Face3.c
  19. Vertex C index
  20. .. attribute:: Face3.normal
  21. Face normal
  22. ``default (0,0,0)``
  23. .. attribute:: Face3.color
  24. Face color
  25. ``default white``
  26. .. attribute:: Face3.centroid
  27. Face centroid
  28. .. attribute:: Face3.vertexNormals
  29. Array of vertex normals
  30. .. attribute:: Face3.vertexColors
  31. Array of vertex colors
  32. .. attribute:: Face3.vertexTangents
  33. Array of vertex tangents
  34. .. attribute:: Face3.materialIndex
  35. Material index (points to ``geometry.materials`` array)
  36. .. rubric:: Example
  37. ::
  38. var face = new THREE.Face3( 0, 1, 2, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );
粤ICP备19079148号