class_meshconvexdecompositionsettings.rst 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/MeshConvexDecompositionSettings.xml.
  6. .. _class_MeshConvexDecompositionSettings:
  7. MeshConvexDecompositionSettings
  8. ===============================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Parameters to be used with a :ref:`Mesh<class_Mesh>` convex decomposition operation.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Parameters to be used with a :ref:`Mesh<class_Mesh>` convex decomposition operation.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  21. | :ref:`bool<class_bool>` | :ref:`convex_hull_approximation<class_MeshConvexDecompositionSettings_property_convex_hull_approximation>` | ``true`` |
  22. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  23. | :ref:`int<class_int>` | :ref:`convex_hull_downsampling<class_MeshConvexDecompositionSettings_property_convex_hull_downsampling>` | ``4`` |
  24. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  25. | :ref:`float<class_float>` | :ref:`max_concavity<class_MeshConvexDecompositionSettings_property_max_concavity>` | ``1.0`` |
  26. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  27. | :ref:`int<class_int>` | :ref:`max_convex_hulls<class_MeshConvexDecompositionSettings_property_max_convex_hulls>` | ``1`` |
  28. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  29. | :ref:`int<class_int>` | :ref:`max_num_vertices_per_convex_hull<class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull>` | ``32`` |
  30. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  31. | :ref:`float<class_float>` | :ref:`min_volume_per_convex_hull<class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull>` | ``0.0001`` |
  32. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  33. | :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` | :ref:`mode<class_MeshConvexDecompositionSettings_property_mode>` | ``0`` |
  34. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  35. | :ref:`bool<class_bool>` | :ref:`normalize_mesh<class_MeshConvexDecompositionSettings_property_normalize_mesh>` | ``false`` |
  36. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  37. | :ref:`int<class_int>` | :ref:`plane_downsampling<class_MeshConvexDecompositionSettings_property_plane_downsampling>` | ``4`` |
  38. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  39. | :ref:`bool<class_bool>` | :ref:`project_hull_vertices<class_MeshConvexDecompositionSettings_property_project_hull_vertices>` | ``true`` |
  40. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  41. | :ref:`int<class_int>` | :ref:`resolution<class_MeshConvexDecompositionSettings_property_resolution>` | ``10000`` |
  42. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  43. | :ref:`float<class_float>` | :ref:`revolution_axes_clipping_bias<class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias>` | ``0.05`` |
  44. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  45. | :ref:`float<class_float>` | :ref:`symmetry_planes_clipping_bias<class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias>` | ``0.05`` |
  46. +--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+------------+
  47. .. rst-class:: classref-section-separator
  48. ----
  49. .. rst-class:: classref-descriptions-group
  50. Enumerations
  51. ------------
  52. .. _enum_MeshConvexDecompositionSettings_Mode:
  53. .. rst-class:: classref-enumeration
  54. enum **Mode**: :ref:`🔗<enum_MeshConvexDecompositionSettings_Mode>`
  55. .. _class_MeshConvexDecompositionSettings_constant_CONVEX_DECOMPOSITION_MODE_VOXEL:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **CONVEX_DECOMPOSITION_MODE_VOXEL** = ``0``
  58. Constant for voxel-based approximate convex decomposition.
  59. .. _class_MeshConvexDecompositionSettings_constant_CONVEX_DECOMPOSITION_MODE_TETRAHEDRON:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **CONVEX_DECOMPOSITION_MODE_TETRAHEDRON** = ``1``
  62. Constant for tetrahedron-based approximate convex decomposition.
  63. .. rst-class:: classref-section-separator
  64. ----
  65. .. rst-class:: classref-descriptions-group
  66. Property Descriptions
  67. ---------------------
  68. .. _class_MeshConvexDecompositionSettings_property_convex_hull_approximation:
  69. .. rst-class:: classref-property
  70. :ref:`bool<class_bool>` **convex_hull_approximation** = ``true`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_convex_hull_approximation>`
  71. .. rst-class:: classref-property-setget
  72. - |void| **set_convex_hull_approximation**\ (\ value\: :ref:`bool<class_bool>`\ )
  73. - :ref:`bool<class_bool>` **get_convex_hull_approximation**\ (\ )
  74. If ``true``, uses approximation for computing convex hulls.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_MeshConvexDecompositionSettings_property_convex_hull_downsampling:
  78. .. rst-class:: classref-property
  79. :ref:`int<class_int>` **convex_hull_downsampling** = ``4`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_convex_hull_downsampling>`
  80. .. rst-class:: classref-property-setget
  81. - |void| **set_convex_hull_downsampling**\ (\ value\: :ref:`int<class_int>`\ )
  82. - :ref:`int<class_int>` **get_convex_hull_downsampling**\ (\ )
  83. Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from ``1`` to ``16``.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_MeshConvexDecompositionSettings_property_max_concavity:
  87. .. rst-class:: classref-property
  88. :ref:`float<class_float>` **max_concavity** = ``1.0`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_concavity>`
  89. .. rst-class:: classref-property-setget
  90. - |void| **set_max_concavity**\ (\ value\: :ref:`float<class_float>`\ )
  91. - :ref:`float<class_float>` **get_max_concavity**\ (\ )
  92. Maximum concavity. Ranges from ``0.0`` to ``1.0``.
  93. .. rst-class:: classref-item-separator
  94. ----
  95. .. _class_MeshConvexDecompositionSettings_property_max_convex_hulls:
  96. .. rst-class:: classref-property
  97. :ref:`int<class_int>` **max_convex_hulls** = ``1`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_convex_hulls>`
  98. .. rst-class:: classref-property-setget
  99. - |void| **set_max_convex_hulls**\ (\ value\: :ref:`int<class_int>`\ )
  100. - :ref:`int<class_int>` **get_max_convex_hulls**\ (\ )
  101. The maximum number of convex hulls to produce from the merge operation.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull:
  105. .. rst-class:: classref-property
  106. :ref:`int<class_int>` **max_num_vertices_per_convex_hull** = ``32`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_max_num_vertices_per_convex_hull>`
  107. .. rst-class:: classref-property-setget
  108. - |void| **set_max_num_vertices_per_convex_hull**\ (\ value\: :ref:`int<class_int>`\ )
  109. - :ref:`int<class_int>` **get_max_num_vertices_per_convex_hull**\ (\ )
  110. Controls the maximum number of triangles per convex-hull. Ranges from ``4`` to ``1024``.
  111. .. rst-class:: classref-item-separator
  112. ----
  113. .. _class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull:
  114. .. rst-class:: classref-property
  115. :ref:`float<class_float>` **min_volume_per_convex_hull** = ``0.0001`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_min_volume_per_convex_hull>`
  116. .. rst-class:: classref-property-setget
  117. - |void| **set_min_volume_per_convex_hull**\ (\ value\: :ref:`float<class_float>`\ )
  118. - :ref:`float<class_float>` **get_min_volume_per_convex_hull**\ (\ )
  119. Controls the adaptive sampling of the generated convex-hulls. Ranges from ``0.0`` to ``0.01``.
  120. .. rst-class:: classref-item-separator
  121. ----
  122. .. _class_MeshConvexDecompositionSettings_property_mode:
  123. .. rst-class:: classref-property
  124. :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **mode** = ``0`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_mode>`
  125. .. rst-class:: classref-property-setget
  126. - |void| **set_mode**\ (\ value\: :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>`\ )
  127. - :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` **get_mode**\ (\ )
  128. Mode for the approximate convex decomposition.
  129. .. rst-class:: classref-item-separator
  130. ----
  131. .. _class_MeshConvexDecompositionSettings_property_normalize_mesh:
  132. .. rst-class:: classref-property
  133. :ref:`bool<class_bool>` **normalize_mesh** = ``false`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_normalize_mesh>`
  134. .. rst-class:: classref-property-setget
  135. - |void| **set_normalize_mesh**\ (\ value\: :ref:`bool<class_bool>`\ )
  136. - :ref:`bool<class_bool>` **get_normalize_mesh**\ (\ )
  137. If ``true``, normalizes the mesh before applying the convex decomposition.
  138. .. rst-class:: classref-item-separator
  139. ----
  140. .. _class_MeshConvexDecompositionSettings_property_plane_downsampling:
  141. .. rst-class:: classref-property
  142. :ref:`int<class_int>` **plane_downsampling** = ``4`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_plane_downsampling>`
  143. .. rst-class:: classref-property-setget
  144. - |void| **set_plane_downsampling**\ (\ value\: :ref:`int<class_int>`\ )
  145. - :ref:`int<class_int>` **get_plane_downsampling**\ (\ )
  146. Controls the granularity of the search for the "best" clipping plane. Ranges from ``1`` to ``16``.
  147. .. rst-class:: classref-item-separator
  148. ----
  149. .. _class_MeshConvexDecompositionSettings_property_project_hull_vertices:
  150. .. rst-class:: classref-property
  151. :ref:`bool<class_bool>` **project_hull_vertices** = ``true`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_project_hull_vertices>`
  152. .. rst-class:: classref-property-setget
  153. - |void| **set_project_hull_vertices**\ (\ value\: :ref:`bool<class_bool>`\ )
  154. - :ref:`bool<class_bool>` **get_project_hull_vertices**\ (\ )
  155. If ``true``, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.
  156. .. rst-class:: classref-item-separator
  157. ----
  158. .. _class_MeshConvexDecompositionSettings_property_resolution:
  159. .. rst-class:: classref-property
  160. :ref:`int<class_int>` **resolution** = ``10000`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_resolution>`
  161. .. rst-class:: classref-property-setget
  162. - |void| **set_resolution**\ (\ value\: :ref:`int<class_int>`\ )
  163. - :ref:`int<class_int>` **get_resolution**\ (\ )
  164. Maximum number of voxels generated during the voxelization stage.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias:
  168. .. rst-class:: classref-property
  169. :ref:`float<class_float>` **revolution_axes_clipping_bias** = ``0.05`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_revolution_axes_clipping_bias>`
  170. .. rst-class:: classref-property-setget
  171. - |void| **set_revolution_axes_clipping_bias**\ (\ value\: :ref:`float<class_float>`\ )
  172. - :ref:`float<class_float>` **get_revolution_axes_clipping_bias**\ (\ )
  173. Controls the bias toward clipping along revolution axes. Ranges from ``0.0`` to ``1.0``.
  174. .. rst-class:: classref-item-separator
  175. ----
  176. .. _class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias:
  177. .. rst-class:: classref-property
  178. :ref:`float<class_float>` **symmetry_planes_clipping_bias** = ``0.05`` :ref:`🔗<class_MeshConvexDecompositionSettings_property_symmetry_planes_clipping_bias>`
  179. .. rst-class:: classref-property-setget
  180. - |void| **set_symmetry_planes_clipping_bias**\ (\ value\: :ref:`float<class_float>`\ )
  181. - :ref:`float<class_float>` **get_symmetry_planes_clipping_bias**\ (\ )
  182. Controls the bias toward clipping along symmetry planes. Ranges from ``0.0`` to ``1.0``.
  183. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  184. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  185. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  186. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  187. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  188. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  189. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  190. .. |void| replace:: :abbr:`void (No return value.)`