2
0

class_csgtorus.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CSGTorus.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSGTorus:
  6. CSGTorus
  7. ========
  8. **Inherits:** :ref:`CSGPrimitive<class_CSGPrimitive>` **<** :ref:`CSGShape<class_CSGShape>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A CSG Torus shape.
  13. Properties
  14. ----------
  15. +---------------------------------+-----------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`inner_radius<class_CSGTorus_property_inner_radius>` |
  17. +---------------------------------+-----------------------------------------------------------+
  18. | :ref:`Material<class_Material>` | :ref:`material<class_CSGTorus_property_material>` |
  19. +---------------------------------+-----------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`outer_radius<class_CSGTorus_property_outer_radius>` |
  21. +---------------------------------+-----------------------------------------------------------+
  22. | :ref:`int<class_int>` | :ref:`ring_sides<class_CSGTorus_property_ring_sides>` |
  23. +---------------------------------+-----------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`sides<class_CSGTorus_property_sides>` |
  25. +---------------------------------+-----------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGTorus_property_smooth_faces>` |
  27. +---------------------------------+-----------------------------------------------------------+
  28. Description
  29. -----------
  30. This node allows you to create a torus for use with the CSG system.
  31. Property Descriptions
  32. ---------------------
  33. .. _class_CSGTorus_property_inner_radius:
  34. - :ref:`float<class_float>` **inner_radius**
  35. +----------+-------------------------+
  36. | *Setter* | set_inner_radius(value) |
  37. +----------+-------------------------+
  38. | *Getter* | get_inner_radius() |
  39. +----------+-------------------------+
  40. The inner radius of the torus.
  41. ----
  42. .. _class_CSGTorus_property_material:
  43. - :ref:`Material<class_Material>` **material**
  44. +----------+---------------------+
  45. | *Setter* | set_material(value) |
  46. +----------+---------------------+
  47. | *Getter* | get_material() |
  48. +----------+---------------------+
  49. The material used to render the torus.
  50. ----
  51. .. _class_CSGTorus_property_outer_radius:
  52. - :ref:`float<class_float>` **outer_radius**
  53. +----------+-------------------------+
  54. | *Setter* | set_outer_radius(value) |
  55. +----------+-------------------------+
  56. | *Getter* | get_outer_radius() |
  57. +----------+-------------------------+
  58. The outer radius of the torus.
  59. ----
  60. .. _class_CSGTorus_property_ring_sides:
  61. - :ref:`int<class_int>` **ring_sides**
  62. +----------+-----------------------+
  63. | *Setter* | set_ring_sides(value) |
  64. +----------+-----------------------+
  65. | *Getter* | get_ring_sides() |
  66. +----------+-----------------------+
  67. The number of edges each ring of the torus is constructed of.
  68. ----
  69. .. _class_CSGTorus_property_sides:
  70. - :ref:`int<class_int>` **sides**
  71. +----------+------------------+
  72. | *Setter* | set_sides(value) |
  73. +----------+------------------+
  74. | *Getter* | get_sides() |
  75. +----------+------------------+
  76. The number of slices the torus is constructed of.
  77. ----
  78. .. _class_CSGTorus_property_smooth_faces:
  79. - :ref:`bool<class_bool>` **smooth_faces**
  80. +----------+-------------------------+
  81. | *Setter* | set_smooth_faces(value) |
  82. +----------+-------------------------+
  83. | *Getter* | get_smooth_faces() |
  84. +----------+-------------------------+
  85. If ``true`` the normals of the torus are set to give a smooth effect making the torus seem rounded. If ``false`` the torus will have a flat shaded look.