Face4.rst 1.4 KB

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