class_spheremesh.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SphereMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SphereMesh:
  5. SphereMesh
  6. ==========
  7. **Inherits:** :ref:`PrimitiveMesh<class_primitivemesh>` **<** :ref:`Mesh<class_mesh>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Class representing a spherical :ref:`PrimitiveMesh<class_primitivemesh>`.
  12. Member Functions
  13. ----------------
  14. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_height<class_SphereMesh_get_height>` **(** **)** const |
  16. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`get_is_hemisphere<class_SphereMesh_get_is_hemisphere>` **(** **)** const |
  18. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`get_radial_segments<class_SphereMesh_get_radial_segments>` **(** **)** const |
  20. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`get_radius<class_SphereMesh_get_radius>` **(** **)** const |
  22. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`get_rings<class_SphereMesh_get_rings>` **(** **)** const |
  24. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_height<class_SphereMesh_set_height>` **(** :ref:`float<class_float>` height **)** |
  26. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_is_hemisphere<class_SphereMesh_set_is_hemisphere>` **(** :ref:`bool<class_bool>` is_hemisphere **)** |
  28. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`set_radial_segments<class_SphereMesh_set_radial_segments>` **(** :ref:`int<class_int>` radial_segments **)** |
  30. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set_radius<class_SphereMesh_set_radius>` **(** :ref:`float<class_float>` radius **)** |
  32. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_rings<class_SphereMesh_set_rings>` **(** :ref:`int<class_int>` rings **)** |
  34. +----------------------------+----------------------------------------------------------------------------------------------------------------------+
  35. Member Variables
  36. ----------------
  37. - :ref:`float<class_float>` **height** - Full height of the sphere. Defaults to 2.0.
  38. - :ref:`bool<class_bool>` **is_hemisphere** - Determines whether a full sphere or a hemisphere is created. Attention: To get a regular hemisphere the height and radius of the sphere have to equal. Defaults to false.
  39. - :ref:`int<class_int>` **radial_segments** - Number of radial segments on the sphere. Defaults to 64.
  40. - :ref:`float<class_float>` **radius** - Radius of sphere. Defaults to 1.0.
  41. - :ref:`int<class_int>` **rings** - Number of segments along the height of the sphere. Defaults to 32.
  42. Description
  43. -----------
  44. Class representing a spherical :ref:`PrimitiveMesh<class_primitivemesh>`.
  45. Member Function Description
  46. ---------------------------
  47. .. _class_SphereMesh_get_height:
  48. - :ref:`float<class_float>` **get_height** **(** **)** const
  49. .. _class_SphereMesh_get_is_hemisphere:
  50. - :ref:`bool<class_bool>` **get_is_hemisphere** **(** **)** const
  51. .. _class_SphereMesh_get_radial_segments:
  52. - :ref:`int<class_int>` **get_radial_segments** **(** **)** const
  53. .. _class_SphereMesh_get_radius:
  54. - :ref:`float<class_float>` **get_radius** **(** **)** const
  55. .. _class_SphereMesh_get_rings:
  56. - :ref:`int<class_int>` **get_rings** **(** **)** const
  57. .. _class_SphereMesh_set_height:
  58. - void **set_height** **(** :ref:`float<class_float>` height **)**
  59. .. _class_SphereMesh_set_is_hemisphere:
  60. - void **set_is_hemisphere** **(** :ref:`bool<class_bool>` is_hemisphere **)**
  61. .. _class_SphereMesh_set_radial_segments:
  62. - void **set_radial_segments** **(** :ref:`int<class_int>` radial_segments **)**
  63. .. _class_SphereMesh_set_radius:
  64. - void **set_radius** **(** :ref:`float<class_float>` radius **)**
  65. .. _class_SphereMesh_set_rings:
  66. - void **set_rings** **(** :ref:`int<class_int>` rings **)**