:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/TorusMesh.xml. .. _class_TorusMesh: TorusMesh ========= **Inherits:** :ref:`PrimitiveMesh` **<** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` Class representing a torus :ref:`PrimitiveMesh`. Description ----------- Class representing a torus :ref:`PrimitiveMesh`. Properties ---------- +---------------------------+--------------------------------------------------------------+---------+ | :ref:`float` | :ref:`inner_radius` | ``0.5`` | +---------------------------+--------------------------------------------------------------+---------+ | :ref:`float` | :ref:`outer_radius` | ``1.0`` | +---------------------------+--------------------------------------------------------------+---------+ | :ref:`int` | :ref:`ring_segments` | ``32`` | +---------------------------+--------------------------------------------------------------+---------+ | :ref:`int` | :ref:`rings` | ``64`` | +---------------------------+--------------------------------------------------------------+---------+ Property Descriptions --------------------- .. _class_TorusMesh_property_inner_radius: - :ref:`float` **inner_radius** +-----------+-------------------------+ | *Default* | ``0.5`` | +-----------+-------------------------+ | *Setter* | set_inner_radius(value) | +-----------+-------------------------+ | *Getter* | get_inner_radius() | +-----------+-------------------------+ The inner radius of the torus. ---- .. _class_TorusMesh_property_outer_radius: - :ref:`float` **outer_radius** +-----------+-------------------------+ | *Default* | ``1.0`` | +-----------+-------------------------+ | *Setter* | set_outer_radius(value) | +-----------+-------------------------+ | *Getter* | get_outer_radius() | +-----------+-------------------------+ The outer radius of the torus. ---- .. _class_TorusMesh_property_ring_segments: - :ref:`int` **ring_segments** +-----------+--------------------------+ | *Default* | ``32`` | +-----------+--------------------------+ | *Setter* | set_ring_segments(value) | +-----------+--------------------------+ | *Getter* | get_ring_segments() | +-----------+--------------------------+ The number of edges each ring of the torus is constructed of. ---- .. _class_TorusMesh_property_rings: - :ref:`int` **rings** +-----------+------------------+ | *Default* | ``64`` | +-----------+------------------+ | *Setter* | set_rings(value) | +-----------+------------------+ | *Getter* | get_rings() | +-----------+------------------+ The number of slices the torus is constructed of. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`