Files
godot-docs-l10n/classes/ru/class_cylindermesh.rst

180 lines
10 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_CylinderMesh:
CylinderMesh
============
**Наследует:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Класс, представляющий цилиндрическую :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
.. rst-class:: classref-introduction-group
Описание
----------------
Класс, представляющий цилиндрическую :ref:`PrimitiveMesh<class_PrimitiveMesh>`. Этот класс можно использовать для создания конусов, установив свойства :ref:`top_radius<class_CylinderMesh_property_top_radius>` или :ref:`bottom_radius<class_CylinderMesh_property_bottom_radius>` на ``0.0``.
.. rst-class:: classref-reftable-group
Свойства
----------------
.. table::
:widths: auto
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`float<class_float>` | :ref:`bottom_radius<class_CylinderMesh_property_bottom_radius>` | ``0.5`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`bool<class_bool>` | :ref:`cap_bottom<class_CylinderMesh_property_cap_bottom>` | ``true`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`bool<class_bool>` | :ref:`cap_top<class_CylinderMesh_property_cap_top>` | ``true`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`float<class_float>` | :ref:`height<class_CylinderMesh_property_height>` | ``2.0`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`int<class_int>` | :ref:`radial_segments<class_CylinderMesh_property_radial_segments>` | ``64`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`int<class_int>` | :ref:`rings<class_CylinderMesh_property_rings>` | ``4`` |
+---------------------------+---------------------------------------------------------------------+----------+
| :ref:`float<class_float>` | :ref:`top_radius<class_CylinderMesh_property_top_radius>` | ``0.5`` |
+---------------------------+---------------------------------------------------------------------+----------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания свойств
--------------------------------
.. _class_CylinderMesh_property_bottom_radius:
.. rst-class:: classref-property
:ref:`float<class_float>` **bottom_radius** = ``0.5`` :ref:`🔗<class_CylinderMesh_property_bottom_radius>`
.. rst-class:: classref-property-setget
- |void| **set_bottom_radius**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_bottom_radius**\ (\ )
Нижний радиус цилиндра. Если задано значение ``0.0``, нижние грани не будут созданы, что приведет к конической форме. См. также :ref:`cap_bottom<class_CylinderMesh_property_cap_bottom>`.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_cap_bottom:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **cap_bottom** = ``true`` :ref:`🔗<class_CylinderMesh_property_cap_bottom>`
.. rst-class:: classref-property-setget
- |void| **set_cap_bottom**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_cap_bottom**\ (\ )
Если ``true``, генерирует колпачок в нижней части цилиндра. Это можно установить на ``false``, чтобы ускорить генерацию и рендеринг, когда колпачок никогда не виден камере. См. также :ref:`bottom_radius<class_CylinderMesh_property_bottom_radius>`.
\ **Примечание:** Если :ref:`bottom_radius<class_CylinderMesh_property_bottom_radius>` равен ``0.0``, генерация колпачка всегда пропускается, даже если :ref:`cap_bottom<class_CylinderMesh_property_cap_bottom>` равен ``true``.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_cap_top:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **cap_top** = ``true`` :ref:`🔗<class_CylinderMesh_property_cap_top>`
.. rst-class:: classref-property-setget
- |void| **set_cap_top**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_cap_top**\ (\ )
Если ``true``, генерирует колпачок в верхней части цилиндра. Это можно установить на ``false``, чтобы ускорить генерацию и рендеринг, когда колпачок никогда не виден камере. См. также :ref:`top_radius<class_CylinderMesh_property_top_radius>`.
\ **Примечание:** Если :ref:`top_radius<class_CylinderMesh_property_top_radius>` равен ``0.0``, генерация колпачка всегда пропускается, даже если :ref:`cap_top<class_CylinderMesh_property_cap_top>` равен ``true``.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_height:
.. rst-class:: classref-property
:ref:`float<class_float>` **height** = ``2.0`` :ref:`🔗<class_CylinderMesh_property_height>`
.. rst-class:: classref-property-setget
- |void| **set_height**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_height**\ (\ )
Полная высота цилиндра.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_radial_segments:
.. rst-class:: classref-property
:ref:`int<class_int>` **radial_segments** = ``64`` :ref:`🔗<class_CylinderMesh_property_radial_segments>`
.. rst-class:: classref-property-setget
- |void| **set_radial_segments**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_radial_segments**\ (\ )
Количество радиальных сегментов на цилиндре. Более высокие значения приводят к более детализированному цилиндру/конусу за счет производительности.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_rings:
.. rst-class:: classref-property
:ref:`int<class_int>` **rings** = ``4`` :ref:`🔗<class_CylinderMesh_property_rings>`
.. rst-class:: classref-property-setget
- |void| **set_rings**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_rings**\ (\ )
Количество колец ребер по высоте цилиндра. Изменение :ref:`rings<class_CylinderMesh_property_rings>` не оказывает визуального воздействия, если только для изменения данных вершин не используется шейдер или инструмент процедурной сетки. Более высокие значения приводят к большему количеству подразделений, что может быть использовано для создания более плавных эффектов с помощью шейдеров или инструментов процедурной сетки (за счет производительности). Если данные вершин не изменяются с помощью шейдера или инструмента процедурной сетки, :ref:`rings<class_CylinderMesh_property_rings>` следует оставить на значении по умолчанию.
.. rst-class:: classref-item-separator
----
.. _class_CylinderMesh_property_top_radius:
.. rst-class:: classref-property
:ref:`float<class_float>` **top_radius** = ``0.5`` :ref:`🔗<class_CylinderMesh_property_top_radius>`
.. rst-class:: classref-property-setget
- |void| **set_top_radius**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_top_radius**\ (\ )
Верхний радиус цилиндра. Если задано значение ``0.0``, верхние грани не будут созданы, что приведет к конической форме. См. также :ref:`cap_top<class_CylinderMesh_property_cap_top>`.
.. |virtual| replace:: :abbr:`virtual (Этот метод обычно должен быть переопределен пользователем, чтобы иметь какой-либо эффект.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Этот метод не имеет побочных эффектов. Он не изменяет ни одну из переменных-членов экземпляра.)`
.. |vararg| replace:: :abbr:`vararg (Этот метод принимает любое количество аргументов после описанных здесь.)`
.. |constructor| replace:: :abbr:`constructor (Этот метод используется для создания типа.)`
.. |static| replace:: :abbr:`static (Этот метод не нуждается в вызове экземпляра, поэтому его можно вызвать напрямую, используя имя класса.)`
.. |operator| replace:: :abbr:`operator (Этот метод описывает допустимый оператор для использования с этим типом в качестве левого операнда.)`
.. |bitfield| replace:: :abbr:`BitField (Это значение является целым числом, составленным как битовая маска следующих флагов.)`
.. |void| replace:: :abbr:`void (Нет возвращаемого значения.)`