class_cylindermesh.rst 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CylinderMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CylinderMesh:
  5. CylinderMesh
  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 cylindrical :ref:`PrimitiveMesh<class_primitivemesh>`.
  12. Member Functions
  13. ----------------
  14. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_bottom_radius<class_CylinderMesh_get_bottom_radius>` **(** **)** const |
  16. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`get_height<class_CylinderMesh_get_height>` **(** **)** const |
  18. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`get_radial_segments<class_CylinderMesh_get_radial_segments>` **(** **)** const |
  20. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`get_rings<class_CylinderMesh_get_rings>` **(** **)** const |
  22. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`get_top_radius<class_CylinderMesh_get_top_radius>` **(** **)** const |
  24. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_bottom_radius<class_CylinderMesh_set_bottom_radius>` **(** :ref:`float<class_float>` radius **)** |
  26. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_height<class_CylinderMesh_set_height>` **(** :ref:`float<class_float>` height **)** |
  28. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`set_radial_segments<class_CylinderMesh_set_radial_segments>` **(** :ref:`int<class_int>` segments **)** |
  30. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set_rings<class_CylinderMesh_set_rings>` **(** :ref:`int<class_int>` rings **)** |
  32. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_top_radius<class_CylinderMesh_set_top_radius>` **(** :ref:`float<class_float>` radius **)** |
  34. +----------------------------+-----------------------------------------------------------------------------------------------------------------+
  35. Member Variables
  36. ----------------
  37. - :ref:`float<class_float>` **bottom_radius** - Bottom radius of the cylinder. Defaults to 1.0.
  38. - :ref:`float<class_float>` **height** - Full height of the cylinder. Defaults to 2.0.
  39. - :ref:`int<class_int>` **radial_segments** - Number of radial segments on the cylinder. Defaults to 64.
  40. - :ref:`int<class_int>` **rings** - Number of edge rings along the height of the cylinder. Defaults to 4.
  41. - :ref:`float<class_float>` **top_radius** - Top radius of the cylinder. Defaults to 1.0.
  42. Description
  43. -----------
  44. Class representing a cylindrical :ref:`PrimitiveMesh<class_primitivemesh>`.
  45. Member Function Description
  46. ---------------------------
  47. .. _class_CylinderMesh_get_bottom_radius:
  48. - :ref:`float<class_float>` **get_bottom_radius** **(** **)** const
  49. .. _class_CylinderMesh_get_height:
  50. - :ref:`float<class_float>` **get_height** **(** **)** const
  51. .. _class_CylinderMesh_get_radial_segments:
  52. - :ref:`int<class_int>` **get_radial_segments** **(** **)** const
  53. .. _class_CylinderMesh_get_rings:
  54. - :ref:`int<class_int>` **get_rings** **(** **)** const
  55. .. _class_CylinderMesh_get_top_radius:
  56. - :ref:`float<class_float>` **get_top_radius** **(** **)** const
  57. .. _class_CylinderMesh_set_bottom_radius:
  58. - void **set_bottom_radius** **(** :ref:`float<class_float>` radius **)**
  59. .. _class_CylinderMesh_set_height:
  60. - void **set_height** **(** :ref:`float<class_float>` height **)**
  61. .. _class_CylinderMesh_set_radial_segments:
  62. - void **set_radial_segments** **(** :ref:`int<class_int>` segments **)**
  63. .. _class_CylinderMesh_set_rings:
  64. - void **set_rings** **(** :ref:`int<class_int>` rings **)**
  65. .. _class_CylinderMesh_set_top_radius:
  66. - void **set_top_radius** **(** :ref:`float<class_float>` radius **)**