github_url: | hide |
---|
Inherits: :ref:`RefCounted<class_RefCounted>` < :ref:`Object<class_Object>`
Parameters to be used with a :ref:`Mesh<class_Mesh>` convex decomposition operation.
.. rst-class:: classref-introduction-group
Parameters to be used with a :ref:`Mesh<class_Mesh>` convex decomposition operation.
.. rst-class:: classref-reftable-group
.. rst-class:: classref-section-separator
.. rst-class:: classref-descriptions-group
.. rst-class:: classref-enumeration
enum Mode:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` CONVEX_DECOMPOSITION_MODE_VOXEL = 0
Constant for voxel-based approximate convex decomposition.
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` CONVEX_DECOMPOSITION_MODE_TETRAHEDRON = 1
Constant for tetrahedron-based approximate convex decomposition.
.. rst-class:: classref-section-separator
.. rst-class:: classref-descriptions-group
.. rst-class:: classref-property
:ref:`bool<class_bool>` convex_hull_approximation = true
.. rst-class:: classref-property-setget
- void set_convex_hull_approximation ( :ref:`bool<class_bool>` value )
- :ref:`bool<class_bool>` get_convex_hull_approximation ( )
If enabled uses approximation for computing convex hulls.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`int<class_int>` convex_hull_downsampling = 4
.. rst-class:: classref-property-setget
- void set_convex_hull_downsampling ( :ref:`int<class_int>` value )
- :ref:`int<class_int>` get_convex_hull_downsampling ( )
Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1
to 16
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`float<class_float>` max_concavity = 1.0
.. rst-class:: classref-property-setget
- void set_max_concavity ( :ref:`float<class_float>` value )
- :ref:`float<class_float>` get_max_concavity ( )
Maximum concavity. Ranges from 0.0
to 1.0
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`int<class_int>` max_convex_hulls = 1
.. rst-class:: classref-property-setget
- void set_max_convex_hulls ( :ref:`int<class_int>` value )
- :ref:`int<class_int>` get_max_convex_hulls ( )
The maximum number of convex hulls to produce from the merge operation.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`int<class_int>` max_num_vertices_per_convex_hull = 32
.. rst-class:: classref-property-setget
- void set_max_num_vertices_per_convex_hull ( :ref:`int<class_int>` value )
- :ref:`int<class_int>` get_max_num_vertices_per_convex_hull ( )
Controls the maximum number of triangles per convex-hull. Ranges from 4
to 1024
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`float<class_float>` min_volume_per_convex_hull = 0.0001
.. rst-class:: classref-property-setget
- void set_min_volume_per_convex_hull ( :ref:`float<class_float>` value )
- :ref:`float<class_float>` get_min_volume_per_convex_hull ( )
Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0
to 0.01
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` mode = 0
.. rst-class:: classref-property-setget
- void set_mode ( :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` value )
- :ref:`Mode<enum_MeshConvexDecompositionSettings_Mode>` get_mode ( )
Mode for the approximate convex decomposition.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`bool<class_bool>` normalize_mesh = false
.. rst-class:: classref-property-setget
- void set_normalize_mesh ( :ref:`bool<class_bool>` value )
- :ref:`bool<class_bool>` get_normalize_mesh ( )
If enabled normalizes the mesh before applying the convex decomposition.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`int<class_int>` plane_downsampling = 4
.. rst-class:: classref-property-setget
- void set_plane_downsampling ( :ref:`int<class_int>` value )
- :ref:`int<class_int>` get_plane_downsampling ( )
Controls the granularity of the search for the "best" clipping plane. Ranges from 1
to 16
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`bool<class_bool>` project_hull_vertices = true
.. rst-class:: classref-property-setget
- void set_project_hull_vertices ( :ref:`bool<class_bool>` value )
- :ref:`bool<class_bool>` get_project_hull_vertices ( )
If enabled projects output convex hull vertices onto original source mesh to increase floating point accuracy of the results.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`int<class_int>` resolution = 10000
.. rst-class:: classref-property-setget
- void set_resolution ( :ref:`int<class_int>` value )
- :ref:`int<class_int>` get_resolution ( )
Maximum number of voxels generated during the voxelization stage.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`float<class_float>` revolution_axes_clipping_bias = 0.05
.. rst-class:: classref-property-setget
- void set_revolution_axes_clipping_bias ( :ref:`float<class_float>` value )
- :ref:`float<class_float>` get_revolution_axes_clipping_bias ( )
Controls the bias toward clipping along revolution axes. Ranges from 0.0
to 1.0
.
.. rst-class:: classref-item-separator
.. rst-class:: classref-property
:ref:`float<class_float>` symmetry_planes_clipping_bias = 0.05
.. rst-class:: classref-property-setget
- void set_symmetry_planes_clipping_bias ( :ref:`float<class_float>` value )
- :ref:`float<class_float>` get_symmetry_planes_clipping_bias ( )
Controls the bias toward clipping along symmetry planes. Ranges from 0.0
to 1.0
.