class_spheremesh.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class representing a spherical :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+-------------------------------------------------------------------+-----------+
  21. | :ref:`float<class_float>` | :ref:`height<class_SphereMesh_property_height>` | ``1.0`` |
  22. +---------------------------+-------------------------------------------------------------------+-----------+
  23. | :ref:`bool<class_bool>` | :ref:`is_hemisphere<class_SphereMesh_property_is_hemisphere>` | ``false`` |
  24. +---------------------------+-------------------------------------------------------------------+-----------+
  25. | :ref:`int<class_int>` | :ref:`radial_segments<class_SphereMesh_property_radial_segments>` | ``64`` |
  26. +---------------------------+-------------------------------------------------------------------+-----------+
  27. | :ref:`float<class_float>` | :ref:`radius<class_SphereMesh_property_radius>` | ``0.5`` |
  28. +---------------------------+-------------------------------------------------------------------+-----------+
  29. | :ref:`int<class_int>` | :ref:`rings<class_SphereMesh_property_rings>` | ``32`` |
  30. +---------------------------+-------------------------------------------------------------------+-----------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Property Descriptions
  35. ---------------------
  36. .. _class_SphereMesh_property_height:
  37. .. rst-class:: classref-property
  38. :ref:`float<class_float>` **height** = ``1.0`` :ref:`🔗<class_SphereMesh_property_height>`
  39. .. rst-class:: classref-property-setget
  40. - |void| **set_height**\ (\ value\: :ref:`float<class_float>`\ )
  41. - :ref:`float<class_float>` **get_height**\ (\ )
  42. Full height of the sphere.
  43. .. rst-class:: classref-item-separator
  44. ----
  45. .. _class_SphereMesh_property_is_hemisphere:
  46. .. rst-class:: classref-property
  47. :ref:`bool<class_bool>` **is_hemisphere** = ``false`` :ref:`🔗<class_SphereMesh_property_is_hemisphere>`
  48. .. rst-class:: classref-property-setget
  49. - |void| **set_is_hemisphere**\ (\ value\: :ref:`bool<class_bool>`\ )
  50. - :ref:`bool<class_bool>` **get_is_hemisphere**\ (\ )
  51. If ``true``, a hemisphere is created rather than a full sphere.
  52. \ **Note:** To get a regular hemisphere, the height and radius of the sphere must be equal.
  53. .. rst-class:: classref-item-separator
  54. ----
  55. .. _class_SphereMesh_property_radial_segments:
  56. .. rst-class:: classref-property
  57. :ref:`int<class_int>` **radial_segments** = ``64`` :ref:`🔗<class_SphereMesh_property_radial_segments>`
  58. .. rst-class:: classref-property-setget
  59. - |void| **set_radial_segments**\ (\ value\: :ref:`int<class_int>`\ )
  60. - :ref:`int<class_int>` **get_radial_segments**\ (\ )
  61. Number of radial segments on the sphere.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_SphereMesh_property_radius:
  65. .. rst-class:: classref-property
  66. :ref:`float<class_float>` **radius** = ``0.5`` :ref:`🔗<class_SphereMesh_property_radius>`
  67. .. rst-class:: classref-property-setget
  68. - |void| **set_radius**\ (\ value\: :ref:`float<class_float>`\ )
  69. - :ref:`float<class_float>` **get_radius**\ (\ )
  70. Radius of sphere.
  71. .. rst-class:: classref-item-separator
  72. ----
  73. .. _class_SphereMesh_property_rings:
  74. .. rst-class:: classref-property
  75. :ref:`int<class_int>` **rings** = ``32`` :ref:`🔗<class_SphereMesh_property_rings>`
  76. .. rst-class:: classref-property-setget
  77. - |void| **set_rings**\ (\ value\: :ref:`int<class_int>`\ )
  78. - :ref:`int<class_int>` **get_rings**\ (\ )
  79. Number of segments along the height of the sphere.
  80. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  81. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  82. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  83. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  84. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  85. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  86. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  87. .. |void| replace:: :abbr:`void (No return value.)`