.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the CylinderMesh.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_CylinderMesh: CylinderMesh ============ **Inherits:** :ref:`PrimitiveMesh` **<** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Class representing a cylindrical :ref:`PrimitiveMesh`. Member Functions ---------------- +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_bottom_radius` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_height` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_radial_segments` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_rings` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_top_radius` **(** **)** const | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bottom_radius` **(** :ref:`float` radius **)** | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_height` **(** :ref:`float` height **)** | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_radial_segments` **(** :ref:`int` segments **)** | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_rings` **(** :ref:`int` rings **)** | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_top_radius` **(** :ref:`float` radius **)** | +----------------------------+-----------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **bottom_radius** - Bottom radius of the cylinder. Defaults to 1.0. - :ref:`float` **height** - Full height of the cylinder. Defaults to 2.0. - :ref:`int` **radial_segments** - Number of radial segments on the cylinder. Defaults to 64. - :ref:`int` **rings** - Number of edge rings along the height of the cylinder. Defaults to 4. - :ref:`float` **top_radius** - Top radius of the cylinder. Defaults to 1.0. Description ----------- Class representing a cylindrical :ref:`PrimitiveMesh`. Member Function Description --------------------------- .. _class_CylinderMesh_get_bottom_radius: - :ref:`float` **get_bottom_radius** **(** **)** const .. _class_CylinderMesh_get_height: - :ref:`float` **get_height** **(** **)** const .. _class_CylinderMesh_get_radial_segments: - :ref:`int` **get_radial_segments** **(** **)** const .. _class_CylinderMesh_get_rings: - :ref:`int` **get_rings** **(** **)** const .. _class_CylinderMesh_get_top_radius: - :ref:`float` **get_top_radius** **(** **)** const .. _class_CylinderMesh_set_bottom_radius: - void **set_bottom_radius** **(** :ref:`float` radius **)** .. _class_CylinderMesh_set_height: - void **set_height** **(** :ref:`float` height **)** .. _class_CylinderMesh_set_radial_segments: - void **set_radial_segments** **(** :ref:`int` segments **)** .. _class_CylinderMesh_set_rings: - void **set_rings** **(** :ref:`int` rings **)** .. _class_CylinderMesh_set_top_radius: - void **set_top_radius** **(** :ref:`float` radius **)**