Table of Contents

Class MeshConvexDecompositionSettings

Parameters to be used with a Mesh convex decomposition operation.

Inheritance
MeshConvexDecompositionSettings

Remarks

Parameters to be used with a Mesh convex decomposition operation.

Properties

convex_hull_approximation

If true, uses approximation for computing convex hulls.

var convex_hull_approximation : bool = true

Property Value

bool

Remarks

  • void set_convex_hull_approximation(bool value)
  • bool get_convex_hull_approximation

convex_hull_downsampling

Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1 to 16.

var convex_hull_downsampling : int = 4

Property Value

int

Remarks

  • void set_convex_hull_downsampling(int value)
  • int get_convex_hull_downsampling

max_concavity

Maximum concavity. Ranges from 0.0 to 1.0.

var max_concavity : float = 1.0

Property Value

float

Remarks

  • void set_max_concavity(float value)
  • float get_max_concavity

max_convex_hulls

The maximum number of convex hulls to produce from the merge operation.

var max_convex_hulls : int = 1

Property Value

int

Remarks

  • void set_max_convex_hulls(int value)
  • int get_max_convex_hulls

max_num_vertices_per_convex_hull

Controls the maximum number of triangles per convex-hull. Ranges from 4 to 1024.

var max_num_vertices_per_convex_hull : int = 32

Property Value

int

Remarks

  • void set_max_num_vertices_per_convex_hull(int value)
  • int get_max_num_vertices_per_convex_hull

min_volume_per_convex_hull

Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0 to 0.01.

var min_volume_per_convex_hull : float = 0.0001

Property Value

float

Remarks

  • void set_min_volume_per_convex_hull(float value)
  • float get_min_volume_per_convex_hull

mode

Mode for the approximate convex decomposition.

var mode : int = 0

Property Value

int

Remarks

  • void set_mode(int value)
  • int get_mode

normalize_mesh

If true, normalizes the mesh before applying the convex decomposition.

var normalize_mesh : bool = false

Property Value

bool

Remarks

  • void set_normalize_mesh(bool value)
  • bool get_normalize_mesh

plane_downsampling

Controls the granularity of the search for the "best" clipping plane. Ranges from 1 to 16.

var plane_downsampling : int = 4

Property Value

int

Remarks

  • void set_plane_downsampling(int value)
  • int get_plane_downsampling

project_hull_vertices

If true, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.

var project_hull_vertices : bool = true

Property Value

bool

Remarks

  • void set_project_hull_vertices(bool value)
  • bool get_project_hull_vertices

resolution

Maximum number of voxels generated during the voxelization stage.

var resolution : int = 10000

Property Value

int

Remarks

  • void set_resolution(int value)
  • int get_resolution

revolution_axes_clipping_bias

Controls the bias toward clipping along revolution axes. Ranges from 0.0 to 1.0.

var revolution_axes_clipping_bias : float = 0.05

Property Value

float

Remarks

  • void set_revolution_axes_clipping_bias(float value)
  • float get_revolution_axes_clipping_bias

symmetry_planes_clipping_bias

Controls the bias toward clipping along symmetry planes. Ranges from 0.0 to 1.0.

var symmetry_planes_clipping_bias : float = 0.05

Property Value

float

Remarks

  • void set_symmetry_planes_clipping_bias(float value)
  • float get_symmetry_planes_clipping_bias