Face4.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. ``default (0,0,0)``
  26. .. attribute:: Face4.color
  27. Face color
  28. ``default white``
  29. .. attribute:: Face4.centroid
  30. Face centroid
  31. .. attribute:: Face4.vertexNormals
  32. Array of vertex normals
  33. .. attribute:: Face4.vertexColors
  34. Array of vertex colors
  35. .. attribute:: Face4.vertexTangents
  36. Array of vertex tangents
  37. .. attribute:: Face4.materialIndex
  38. Material index (points to ``geometry.materials`` array)
  39. .. rubric:: Example
  40. ::
  41. var face = new THREE.Face4( 0, 1, 2, 3, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );
粤ICP备19079148号