/Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/ShapeApproximation/MeshSimpleShapeApproximation.h
There are various Generate_X() functions which apply different strategies, generally to fit a containing simple shape or hull to the mesh. However in addition to these explicit strategies, input meshes that are very close to approximations of spheres/boxes/capsules (ie basically meshed versions of these primitives) can be identified and used directly, skipping the fitting process.
class FMeshSimpleShapeApproximation
bool
bDetectBoxes
Should boxes be auto-detected
bool
bDetectCapsules
Should capsules be auto-detected
bool
bDetectConvexes
Should convex be auto-detected
bool
bDetectSpheres
Configuration parametersShould spheres be auto-detected
bool
bSimplifyHulls
Should hulls be simplified as a post-process
bool
bUseExactComputationForBox
double
ConvexDecompositionErrorTolerance
Error tolerance to guide convex decomposition (in cm); we stop adding new parts if the volume error is below the threshold.
int32
ConvexDecompositionMaxPieces
How many convex pieces to target per mesh when creating convex decompositions.
double
ConvexDecompositionMinPartThickness
Minimum part thickness for convex decomposition (in cm); hulls thinner than this will be merged into adjacent hulls, if possible.
float
ConvexDecompositionSearchFactor
How much additional decomposition decomposition + merging to do, as a fraction of max pieces.
double
HullSimplifyTolerance
Simplification tolerance when simplifying 2D convex hulls, eg for swept/projected hulls
int32
HullTargetFaceCount
Target number of triangles when simplifying 3D convex hulls
int32
LevelSetGridResolution
Level Set Grid resolution along longest axis
double
MinDimension
Minimal dimension of fit shapes, eg thickness/radius/etc (currently only enforced in certain cases)
TArray<FSource...
SourceMeshCaches
TArray< constF...
SourceMeshes