MeshConvexDecompositionSettings
Inherits: RefCounted < Object
Description
Section titled “Description”Parameters to be used with a Mesh convex decomposition operation.
Parameters to be used with a Mesh convex decomposition operation.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | convex_hull_approximation |
true |
| int | convex_hull_downsampling |
4 |
| float | max_concavity |
1.0 |
| int | max_convex_hulls |
1 |
| int | max_num_vertices_per_convex_hull |
32 |
| float | min_volume_per_convex_hull |
0.0001 |
| Mode | mode |
0 |
| bool | normalize_mesh |
false |
| int | plane_downsampling |
4 |
| bool | project_hull_vertices |
true |
| int | resolution |
10000 |
| float | revolution_axes_clipping_bias |
0.05 |
| float | symmetry_planes_clipping_bias |
0.05 |
Enumerations
Section titled “Enumerations”Mode
enum Mode
CONVEX_DECOMPOSITION_MODE_VOXEL = 0
Constant for voxel-based approximate convex decomposition.
CONVEX_DECOMPOSITION_MODE_TETRAHEDRON = 1
Constant for tetrahedron-based approximate convex decomposition.
Property descriptions
Section titled “Property descriptions”convex_hull_approximation
bool convex_hull_approximation = true
If true, uses approximation for computing convex hulls.
convex_hull_downsampling
int convex_hull_downsampling = 4
Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1 to 16.
max_concavity
float max_concavity = 1.0
Maximum concavity. Ranges from 0.0 to 1.0.
max_convex_hulls
int max_convex_hulls = 1
The maximum number of convex hulls to produce from the merge operation.
max_num_vertices_per_convex_hull
int max_num_vertices_per_convex_hull = 32
Controls the maximum number of triangles per convex-hull. Ranges from 4 to 1024.
min_volume_per_convex_hull
float min_volume_per_convex_hull = 0.0001
Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0 to 0.01.
mode
Mode mode = 0
Mode for the approximate convex decomposition.
normalize_mesh
bool normalize_mesh = false
If true, normalizes the mesh before applying the convex decomposition.
plane_downsampling
int plane_downsampling = 4
Controls the granularity of the search for the “best” clipping plane. Ranges from 1 to 16.
project_hull_vertices
bool project_hull_vertices = true
If true, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.
resolution
int resolution = 10000
Maximum number of voxels generated during the voxelization stage.
revolution_axes_clipping_bias
float revolution_axes_clipping_bias = 0.05
Controls the bias toward clipping along revolution axes. Ranges from 0.0 to 1.0.
symmetry_planes_clipping_bias
float symmetry_planes_clipping_bias = 0.05
Controls the bias toward clipping along symmetry planes. Ranges from 0.0 to 1.0.
