VhacdSettings

@ConfigSerializable
data class VhacdSettings(val concavity: Double = 0.01, val alpha: Double = 0.05, val beta: Double = 0.05, val resolution: Int = 64, val planeDownsampling: Int = 4, val convexHullDownsampling: Int = 4, val fillMode: VhacdSettings.FillMode = FillMode.FloodFill(), val convexHullApproximation: Boolean = true, val maxConvexHulls: Int = 1024)

Options for the VHACD convex decomposition process. See VHACD for details.

Parameters

concavity

Maximum concavity (0.0 to 1.0)

alpha

Bias towards clipping along symmetry planes (0.0 to 1.0)

beta

Bias towards clipping along revolution planes (0.0 to 1.0)

resolution

Resolution used during voxelization (minimum 0)

planeDownsampling

Granularity of the search for the best clipping plane (minimum 0)

convexHullDownsampling

Precision of convex-hull generation during the clipping plane selection stage (minimum 0)

fillMode

The way the input mesh gets voxelized

convexHullApproximation

Whether the convex-hull should be approximated during decomposition. Setting to true increases performance with a slight degradation of decomposition quality.

maxConvexHulls

Max number of convex hulls generated by decomposition (minimum 0)

Constructors

Link copied to clipboard
constructor(concavity: Double = 0.01, alpha: Double = 0.05, beta: Double = 0.05, resolution: Int = 64, planeDownsampling: Int = 4, convexHullDownsampling: Int = 4, fillMode: VhacdSettings.FillMode = FillMode.FloodFill(), convexHullApproximation: Boolean = true, maxConvexHulls: Int = 1024)

Types

Link copied to clipboard
interface FillMode

Controls how the voxelization determines which voxel needs to be considered empty, and which ones will be considered full.

Properties

Link copied to clipboard
val alpha: Double = 0.05
Link copied to clipboard
val beta: Double = 0.05
Link copied to clipboard
val concavity: Double = 0.01
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val maxConvexHulls: Int = 1024
Link copied to clipboard
Link copied to clipboard
val resolution: Int = 64