mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
321 lines
16 KiB
ReStructuredText
321 lines
16 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_MeshConvexDecompositionSettings:
|
||
|
||
MeshConvexDecompositionSettings
|
||
===============================
|
||
|
||
**Успадковує:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
Параметри, які використовуються за допомогою функції ``Меш``.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Опис
|
||
--------
|
||
|
||
Параметри, які використовуються за допомогою функції ``Меш``.
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Властивості
|
||
----------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`bool<class_bool>` | :ref:`convex_hull_approximation<class_MeshConvexDecompositionSettings_property_convex_hull_approximation>` | ``true`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`int<class_int>` | :ref:`convex_hull_downsampling<class_MeshConvexDecompositionSettings_property_convex_hull_downsampling>` | ``4`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`float<class_float>` | :ref:`max_concavity<class_MeshConvexDecompositionSettings_property_max_concavity>` | ``1.0`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`int<class_int>` | :ref:`max_convex_hulls<class_MeshConvexDecompositionSettings_property_max_convex_hulls>` | ``1`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`int<class_int>` | :ref:`max_num_vertices_per_convex_hull<class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull>` | ``32`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`float<class_float>` | :ref:`min_volume_per_convex_hull<class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull>` | ``0.0001`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` | :ref:`mode<class_MeshConvexDecompositionSettings_property_mode>` | ``0`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`bool<class_bool>` | :ref:`normalize_mesh<class_MeshConvexDecompositionSettings_property_normalize_mesh>` | ``false`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`int<class_int>` | :ref:`plane_downsampling<class_MeshConvexDecompositionSettings_property_plane_downsampling>` | ``4`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`bool<class_bool>` | :ref:`project_hull_vertices<class_MeshConvexDecompositionSettings_property_project_hull_vertices>` | ``true`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`int<class_int>` | :ref:`resolution<class_MeshConvexDecompositionSettings_property_resolution>` | ``10000`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`float<class_float>` | :ref:`revolution_axes_clipping_bias<class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias>` | ``0.05`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
| :ref:`float<class_float>` | :ref:`symmetry_planes_clipping_bias<class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias>` | ``0.05`` |
|
||
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Переліки
|
||
----------------
|
||
|
||
.. _enum_MeshConvexDecompositionSettings_Mode:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Mode**: :ref:`🔗<enum_MeshConvexDecompositionSettings_Mode>`
|
||
|
||
.. _class_MeshConvexDecompositionSettings_constant_CONVEX_DECOMPOSITION_MODE_VOXEL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **CONVEX_DECOMPOSITION_MODE_VOXEL** = ``0``
|
||
|
||
Постійний приблизний конвекційний декомпозицій.
|
||
|
||
.. _class_MeshConvexDecompositionSettings_constant_CONVEX_DECOMPOSITION_MODE_TETRAHEDRON:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **CONVEX_DECOMPOSITION_MODE_TETRAHEDRON** = ``1``
|
||
|
||
Постійний приблизний конвекційний розклад на основі тетрахедрону.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описи властивостей
|
||
------------------------------------
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_convex_hull_approximation:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **convex_hull_approximation** = ``true`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_convex_hull_approximation>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_convex_hull_approximation**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **get_convex_hull_approximation**\ (\ )
|
||
|
||
Якщо ``true``, скористайтеся наближенням для обчислювальних корпусів конвексу.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_convex_hull_downsampling:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **convex_hull_downsampling** = ``4`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_convex_hull_downsampling>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_convex_hull_downsampling**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_convex_hull_downsampling**\ (\ )
|
||
|
||
Контроль точності процесу вироблення конвексу під час етапу відбору площини кліпінгу. Діапазони ``1`` до ``16``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_max_concavity:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **max_concavity** = ``1.0`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_concavity>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_max_concavity**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_max_concavity**\ (\ )
|
||
|
||
Максимальна конкавітність. Діапазони ``0.0`` до ``1.0``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_max_convex_hulls:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **max_convex_hulls** = ``1`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_convex_hulls>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_max_convex_hulls**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_max_convex_hulls**\ (\ )
|
||
|
||
Максимальна кількість конвекційних корпусів для виробництва з операції з об'єднання.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **max_num_vertices_per_convex_hull** = ``32`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_max_num_vertices_per_convex_hull**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_max_num_vertices_per_convex_hull**\ (\ )
|
||
|
||
Контролює максимальну кількість трикутників за конвек-хул. ``4`` до ``1024``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **min_volume_per_convex_hull** = ``0.0001`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_min_volume_per_convex_hull**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_min_volume_per_convex_hull**\ (\ )
|
||
|
||
Контроль адаптивного відбору створених конвекцій-гул. Діапазони ``0.0`` до ``0.01``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_mode:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **mode** = ``0`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_mode>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_mode**\ (\ value\: :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>`\ )
|
||
- :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **get_mode**\ (\ )
|
||
|
||
Режим приблизної опуклості конвексу.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_normalize_mesh:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **normalize_mesh** = ``false`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_normalize_mesh>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_normalize_mesh**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **get_normalize_mesh**\ (\ )
|
||
|
||
Якщо ``true``, нормалізує сіточку перед нанесенням опуклості.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_plane_downsampling:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **plane_downsampling** = ``4`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_plane_downsampling>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_plane_downsampling**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_plane_downsampling**\ (\ )
|
||
|
||
Контролює гранульацію пошуку «кращої» площини затискання. ``1`` до ``16``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_project_hull_vertices:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **project_hull_vertices** = ``true`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_project_hull_vertices>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_project_hull_vertices**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **get_project_hull_vertices**\ (\ )
|
||
|
||
Якщо ``true``, проекти вихідного конвекційного корпусу на оригінальну вихідну сітку, щоб збільшити плавучу точність результатів.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_resolution:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **resolution** = ``10000`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_resolution>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_resolution**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_resolution**\ (\ )
|
||
|
||
Максимальна кількість вокселів, створених під час фази вокселізації.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **revolution_axes_clipping_bias** = ``0.05`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_revolution_axes_clipping_bias**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_revolution_axes_clipping_bias**\ (\ )
|
||
|
||
Контролює боби до затискання уздовж обертів. Діапазони ``0.0`` до ``1.0``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **symmetry_planes_clipping_bias** = ``0.05`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_symmetry_planes_clipping_bias**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_symmetry_planes_clipping_bias**\ (\ )
|
||
|
||
Контролює біас до затиску вздовж площин симетрії. Діапазони ``0.0`` до ``1.0``.
|
||
|
||
.. |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 (Значення не повертається.)`
|