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