Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FConvexDecomposition3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include | #include "CompGeom/ConvexDecomposition3.h" |
void Compute
&40;
int32 NumOutputHulls,
int32 NumAdditionalSplits,
double ErrorTolerance,
double MinThicknessTolerance,
int32 MaxOutputHulls
&41;
Remarks
Compute a decomposition with the desired number of hulls Note: A future version of this function may replace NumOutputHulls with MaxOutputHulls, but this version keeps both parameters for compatibility / consistent behavior.
Parameters
| Name | Description |
|---|---|
| NumOutputHulls | Number of convex hulls to use in the final convex decomposition |
| NumAdditionalSplits | How far to go beyond the target number of hulls when initially the mesh into pieces larger values will require more computation but can find better convex decompositions |
| ErrorTolerance | Stop splitting when hulls have error less than this (expressed in cm; will be cubed for volumetric error). Overrides NumOutputHulls if specified |
| MinThicknessTolerance | Optionally specify a minimum thickness (in cm) for convex parts; parts below this thickness will always be merged away. Overrides NumOutputHulls and ErrorTolerance when needed |
| MaxOutputHulls | If > 0, maximum number of convex hulls to generate. Overrides ErrorTolerance and TargetNumParts when needed |