Click or drag to resize

ConvexDecompositionDecompose Method (Vector3F, Int32, Int32, Int32, Double, Boolean, Int32, Double, Double, Double, Int32, Int32, Boolean, Boolean)

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public static ConvexDecompositionCluster[] Decompose(
	Vector3F[] vertices,
	int[] indices,
	int maxConvexHulls,
	int maxConvexTriangles = 64,
	double minConvexVolume = 0.0001,
	bool convexApproximation = true,
	int maxResolution = 100000,
	double maxConcavity = 0.0025,
	double alpha = 0.05,
	double beta = 0.05,
	int planeDownsampling = 4,
	int hullDownsampling = 4,
	bool normalizeMesh = false,
	bool tetrahedronMode = false
)

Parameters

vertices
Type: NeoAxisVector3F
indices
Type: SystemInt32
maxConvexHulls
Type: SystemInt32
Maximum number of convex hulls to produce
maxConvexTriangles (Optional)
Type: SystemInt32
maximum number of triangles per convex-hull (default = 64, range = 4 - 1024)
minConvexVolume (Optional)
Type: SystemDouble
Controls the adaptive sampling of the generated convex-hulls (default=0.0001, range=0.0-0.01)
convexApproximation (Optional)
Type: SystemBoolean
Enable/disable approximation when computing convex-hulls (default = 1)
maxResolution (Optional)
Type: SystemInt32
Maximum number of voxels generated during the voxelization stage (default = 100,000, range = 10,000 - 16,000,000)
maxConcavity (Optional)
Type: SystemDouble
Maximum allowed concavity (default=0.0025, range=0.0-1.0)
alpha (Optional)
Type: SystemDouble
Controls the bias toward clipping along symmetry planes (default=0.05, range=0.0-1.0)
beta (Optional)
Type: SystemDouble
Controls the bias toward clipping along revolution axes (default=0.05, range=0.0-1.0)
planeDownsampling (Optional)
Type: SystemInt32
Controls the granularity of the search for the \"best\" clipping plane (default=4, range=1-16)
hullDownsampling (Optional)
Type: SystemInt32
Controls the precision of the convex-hull generation process during the clipping plane selection stage (default=4, range=1-16)
normalizeMesh (Optional)
Type: SystemBoolean
Enable/disable normalizing the mesh before applying the convex decomposition (default = 0)
tetrahedronMode (Optional)
Type: SystemBoolean
0: voxel-based approximate convex decomposition, 1: tetrahedron-based approximate convex decomposition (default=0)

Return Value

Type: ConvexDecompositionCluster
See Also