Geometry.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Geometry - Base class for geometry types
  2. ----------------------------------------
  3. .. rubric:: Constructor
  4. .. class:: Geometry()
  5. Base class for geometry types
  6. .. rubric:: Attributes
  7. .. attribute:: Geometry.id
  8. Unique number of the geometry
  9. .. attribute:: Geometry.vertices
  10. Array of vertices
  11. .. attribute:: Geometry.colors;
  12. Array of one-to-one vertex colors, used in ParticleSystem, Line and Ribbon
  13. .. attribute:: Geometry.materials
  14. //todo:description
  15. .. attribute:: Geometry.faces
  16. //todo:description
  17. .. attribute:: Geometry.faceUvs
  18. //todo:description
  19. .. attribute:: Geometry.faceVertexUvs
  20. //todo:description
  21. .. attribute:: Geometry.morphTargets
  22. //todo:description
  23. .. attribute:: Geometry.morphColors
  24. //todo:description
  25. .. attribute:: Geometry.skinWeights
  26. //todo:description
  27. .. attribute:: Geometry.skinIndices
  28. //todo:description
  29. .. attribute:: Geometry.boundingBox
  30. //todo:description
  31. .. attribute:: Geometry.boundingSphere
  32. //todo:description
  33. .. attribute:: Geometry.hasTangents
  34. //todo:description
  35. .. attribute:: Geometry.dynamic
  36. //todo:description
  37. Unless set to true the *Arrays* will be deleted once sent to a buffer.
  38. .. rubric:: Methods
  39. .. function:: Geometry.applyMatrix(matrix)
  40. //todo:description
  41. :param Matrix4 matrix: //todo
  42. .. function:: Geometry.computeCentroids()
  43. //todo:description
  44. .. function:: Geometry.computeFaceNormals()
  45. //todo:description
  46. .. function:: Geometry.computeVertexNormals()
  47. //todo:description
  48. .. function:: Geometry.computeTangents()
  49. //todo:description
  50. .. function:: Geometry.computeBoundingBox()
  51. //todo:description
  52. .. function:: Geometry.computeBoundingSphere()
  53. //todo:description
  54. .. function:: Geometry.mergeVertices()
  55. //todo:description
  56. .. rubric:: Example(s)
  57. ::
  58. //todo::example