class_spheremesh.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/SphereMesh.xml.
  6. .. _class_SphereMesh:
  7. SphereMesh
  8. ==========
  9. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Class representing a spherical :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  11. Description
  12. -----------
  13. Class representing a spherical :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  14. Properties
  15. ----------
  16. +---------------------------+-------------------------------------------------------------------+-----------+
  17. | :ref:`float<class_float>` | :ref:`height<class_SphereMesh_property_height>` | ``1.0`` |
  18. +---------------------------+-------------------------------------------------------------------+-----------+
  19. | :ref:`bool<class_bool>` | :ref:`is_hemisphere<class_SphereMesh_property_is_hemisphere>` | ``false`` |
  20. +---------------------------+-------------------------------------------------------------------+-----------+
  21. | :ref:`int<class_int>` | :ref:`radial_segments<class_SphereMesh_property_radial_segments>` | ``64`` |
  22. +---------------------------+-------------------------------------------------------------------+-----------+
  23. | :ref:`float<class_float>` | :ref:`radius<class_SphereMesh_property_radius>` | ``0.5`` |
  24. +---------------------------+-------------------------------------------------------------------+-----------+
  25. | :ref:`int<class_int>` | :ref:`rings<class_SphereMesh_property_rings>` | ``32`` |
  26. +---------------------------+-------------------------------------------------------------------+-----------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_SphereMesh_property_height:
  30. - :ref:`float<class_float>` **height**
  31. +-----------+-------------------+
  32. | *Default* | ``1.0`` |
  33. +-----------+-------------------+
  34. | *Setter* | set_height(value) |
  35. +-----------+-------------------+
  36. | *Getter* | get_height() |
  37. +-----------+-------------------+
  38. Full height of the sphere.
  39. ----
  40. .. _class_SphereMesh_property_is_hemisphere:
  41. - :ref:`bool<class_bool>` **is_hemisphere**
  42. +-----------+--------------------------+
  43. | *Default* | ``false`` |
  44. +-----------+--------------------------+
  45. | *Setter* | set_is_hemisphere(value) |
  46. +-----------+--------------------------+
  47. | *Getter* | get_is_hemisphere() |
  48. +-----------+--------------------------+
  49. If ``true``, a hemisphere is created rather than a full sphere.
  50. \ **Note:** To get a regular hemisphere, the height and radius of the sphere must be equal.
  51. ----
  52. .. _class_SphereMesh_property_radial_segments:
  53. - :ref:`int<class_int>` **radial_segments**
  54. +-----------+----------------------------+
  55. | *Default* | ``64`` |
  56. +-----------+----------------------------+
  57. | *Setter* | set_radial_segments(value) |
  58. +-----------+----------------------------+
  59. | *Getter* | get_radial_segments() |
  60. +-----------+----------------------------+
  61. Number of radial segments on the sphere.
  62. ----
  63. .. _class_SphereMesh_property_radius:
  64. - :ref:`float<class_float>` **radius**
  65. +-----------+-------------------+
  66. | *Default* | ``0.5`` |
  67. +-----------+-------------------+
  68. | *Setter* | set_radius(value) |
  69. +-----------+-------------------+
  70. | *Getter* | get_radius() |
  71. +-----------+-------------------+
  72. Radius of sphere.
  73. ----
  74. .. _class_SphereMesh_property_rings:
  75. - :ref:`int<class_int>` **rings**
  76. +-----------+------------------+
  77. | *Default* | ``32`` |
  78. +-----------+------------------+
  79. | *Setter* | set_rings(value) |
  80. +-----------+------------------+
  81. | *Getter* | get_rings() |
  82. +-----------+------------------+
  83. Number of segments along the height of the sphere.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  87. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  88. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  89. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`