Index · Object → RefCounted → MeshConvexDecompositionSettings

MeshConvexDecompositionSettings

Parameters to be used with a Mesh convex decomposition operation.

Class Description

Parameters to be used with a Mesh convex decomposition operation.

Properties

var convex_hull_approximation: bool = true

If true, uses approximation for computing convex hulls.

var convex_hull_downsampling: int = 4

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

var max_concavity: float = 1.0

Maximum concavity. Ranges from 0.0 to 1.0.

var max_convex_hulls: int = 1

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

var max_num_vertices_per_convex_hull: int = 32

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

var min_volume_per_convex_hull: float = 0.0001

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

var mode: MeshConvexDecompositionSettings.Mode = 0

Mode for the approximate convex decomposition.

var normalize_mesh: bool = false

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

var plane_downsampling: int = 4

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

var project_hull_vertices: bool = true

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

var resolution: int = 10000

Maximum number of voxels generated during the voxelization stage.

var revolution_axes_clipping_bias: float = 0.05

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

var symmetry_planes_clipping_bias: float = 0.05

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

Methods

Inherited from RefCounted (4)
func init_ref() -> bool
func reference() -> bool
func unreference() -> bool
Inherited from Object (62)
func _get(property: StringName) -> Variant
func _get_property_list() -> Dictionary[]
func _init() -> void
func _iter_get(iter: Variant) -> Variant
func _iter_init(iter: Array) -> bool
func _iter_next(iter: Array) -> bool
func _notification(what: int) -> void
func _set(property: StringName, value: Variant) -> bool
func _to_string() -> String
func _validate_property(property: Dictionary) -> void
func add_user_signal(signal: String, arguments: Array = []) -> void
func call(method: StringName) -> Variant
func callv(method: StringName, arg_array: Array) -> Variant
func cancel_free() -> void
func connect(signal: StringName, callable: Callable, flags: int = 0) -> Error
func disconnect(signal: StringName, callable: Callable) -> void
func emit_signal(signal: StringName) -> Error
func free() -> void
func get(property: StringName) -> Variant
func get_class() -> String
func get_incoming_connections() -> Dictionary[]
func get_indexed(property_path: NodePath) -> Variant
func get_meta(name: StringName, default: Variant = null) -> Variant
func get_meta_list() -> StringName[]
func get_method_list() -> Dictionary[]
func get_property_list() -> Dictionary[]
func get_signal_connection_list(signal: StringName) -> Dictionary[]
func get_signal_list() -> Dictionary[]
func has_meta(name: StringName) -> bool
func has_method(method: StringName) -> bool
func has_signal(signal: StringName) -> bool
func is_class(class: StringName) -> bool
func is_connected(signal: StringName, callable: Callable) -> bool
func notification(what: int, reversed: bool = false) -> void
func remove_meta(name: StringName) -> void
func remove_user_signal(signal: StringName) -> void
func set(property: StringName, value: Variant) -> void
func set_block_signals(enable: bool) -> void
func set_deferred(property: StringName, value: Variant) -> void
func set_indexed(property_path: NodePath, value: Variant) -> void
func set_message_translation(enable: bool) -> void
func set_meta(name: StringName, value: Variant) -> void
func set_script(script: Variant) -> void
func set_translation_domain(domain: StringName) -> void
func to_string() -> String
func tr(message: StringName, context: StringName = &"") -> String
func tr_n(message: StringName, plural_message: StringName, n: int, context: StringName = &"") -> String

Signals

Inherited from Object (2)

Enums & Constants

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.