:github_url: hide .. 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`. Properties ---------- +---------------------------+---------------------------------------------------------------------+-----+ | :ref:`float` | :ref:`bottom_radius` | 1.0 | +---------------------------+---------------------------------------------------------------------+-----+ | :ref:`float` | :ref:`height` | 2.0 | +---------------------------+---------------------------------------------------------------------+-----+ | :ref:`int` | :ref:`radial_segments` | 64 | +---------------------------+---------------------------------------------------------------------+-----+ | :ref:`int` | :ref:`rings` | 4 | +---------------------------+---------------------------------------------------------------------+-----+ | :ref:`float` | :ref:`top_radius` | 1.0 | +---------------------------+---------------------------------------------------------------------+-----+ Description ----------- Class representing a cylindrical :ref:`PrimitiveMesh`. This class can be used to create cones by setting either the :ref:`top_radius` or :ref:`bottom_radius` properties to 0.0. Property Descriptions --------------------- .. _class_CylinderMesh_property_bottom_radius: - :ref:`float` **bottom_radius** +-----------+--------------------------+ | *Default* | 1.0 | +-----------+--------------------------+ | *Setter* | set_bottom_radius(value) | +-----------+--------------------------+ | *Getter* | get_bottom_radius() | +-----------+--------------------------+ Bottom radius of the cylinder. .. _class_CylinderMesh_property_height: - :ref:`float` **height** +-----------+-------------------+ | *Default* | 2.0 | +-----------+-------------------+ | *Setter* | set_height(value) | +-----------+-------------------+ | *Getter* | get_height() | +-----------+-------------------+ Full height of the cylinder. .. _class_CylinderMesh_property_radial_segments: - :ref:`int` **radial_segments** +-----------+----------------------------+ | *Default* | 64 | +-----------+----------------------------+ | *Setter* | set_radial_segments(value) | +-----------+----------------------------+ | *Getter* | get_radial_segments() | +-----------+----------------------------+ Number of radial segments on the cylinder. .. _class_CylinderMesh_property_rings: - :ref:`int` **rings** +-----------+------------------+ | *Default* | 4 | +-----------+------------------+ | *Setter* | set_rings(value) | +-----------+------------------+ | *Getter* | get_rings() | +-----------+------------------+ Number of edge rings along the height of the cylinder. .. _class_CylinderMesh_property_top_radius: - :ref:`float` **top_radius** +-----------+-----------------------+ | *Default* | 1.0 | +-----------+-----------------------+ | *Setter* | set_top_radius(value) | +-----------+-----------------------+ | *Getter* | get_top_radius() | +-----------+-----------------------+ Top radius of the cylinder.