ConvexDecompositionDecompose(Vector3F, Int32, Int32, Int32, Double, Boolean, Int32, Double, Double, Double, Int32, Int32, Boolean, Boolean) Method |
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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 Vector3F
- indices Int32
- maxConvexHulls Int32
- Maximum number of convex hulls to produce
- maxConvexTriangles Int32 (Optional)
- maximum number of triangles per convex-hull (default = 64, range = 4 - 1024)
- minConvexVolume Double (Optional)
- Controls the adaptive sampling of the generated convex-hulls (default=0.0001, range=0.0-0.01)
- convexApproximation Boolean (Optional)
- Enable/disable approximation when computing convex-hulls (default = 1)
- maxResolution Int32 (Optional)
- Maximum number of voxels generated during the voxelization stage (default = 100,000, range = 10,000 - 16,000,000)
- maxConcavity Double (Optional)
- Maximum allowed concavity (default=0.0025, range=0.0-1.0)
- alpha Double (Optional)
- Controls the bias toward clipping along symmetry planes (default=0.05, range=0.0-1.0)
- beta Double (Optional)
- Controls the bias toward clipping along revolution axes (default=0.05, range=0.0-1.0)
- planeDownsampling Int32 (Optional)
- Controls the granularity of the search for the \"best\" clipping plane (default=4, range=1-16)
- hullDownsampling Int32 (Optional)
- Controls the precision of the convex-hull generation process during the clipping plane selection stage (default=4, range=1-16)
- normalizeMesh Boolean (Optional)
- Enable/disable normalizing the mesh before applying the convex decomposition (default = 0)
- tetrahedronMode Boolean (Optional)
- 0: voxel-based approximate convex decomposition, 1: tetrahedron-based approximate convex decomposition (default=0)
Return Value
ConvexDecompositionCluster
See Also