Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/ShapeApproximation/MeshSimpleShapeApproximation.h |
Include |
#include "ShapeApproximation/MeshSimpleShapeApproximation.h" |
class FMeshSimpleShapeApproximation
FMeshSimpleShapeApproximation can calculate various "simple" shape approximations for a set of meshes, by fitting various primitives/hulls/etc to each mesh. The assumption is that the input mesh(es) are already partitioned into pieces.
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.
Name | Description | ||
---|---|---|---|
|
bDetectBoxes |
Should boxes be auto-detected |
|
|
bDetectCapsules |
Should capsules be auto-detected |
|
|
bDetectConvexes |
Should convex be auto-detected |
|
|
bDetectSpheres |
Configuration parametersShould spheres be auto-detected |
|
|
bSimplifyHulls |
Should hulls be simplified as a post-process |
|
|
bUseExactComputationForBox |
||
|
double |
HullSimplifyTolerance |
Simplification tolerance when simplifying 2D convex hulls, eg for swept/projected hulls |
|
HullTargetFaceCount |
Target number of triangles when simplifying 3D convex hulls |
|
|
double |
MinDimension |
Minimal dimension of fit shapes, eg thickness/radius/etc (currently only enforced in certain cases) |
|
SourceMeshCaches |
||
|
SourceMeshes |
Name | Description | ||
---|---|---|---|
|
DetectAndCacheSimpleShapeType ( |
||
|
Generate_AlignedBoxes ( |
Approximation generators Fit containing axis-aligned boxes to each input mesh and store in ShapeSetOut |
|
|
Generate_Capsules ( |
Fit containing approximate-minimum-volume capsules to each input mesh and store in ShapeSetOut |
|
|
Generate_ConvexHulls ( |
Calculate 3D Convex Hulls for each input mesh and store in ShapeSetOut. |
|
|
Generate_MinimalSpheres ( |
Fit containing minimal-volume spheres to each input mesh and store in ShapeSetOut |
|
|
Generate_MinVolume ( |
Fit containing axis-aligned box, oriented box, capsule, and sphere to each input mesh, and store the one with smallest volume in ShapeSetOut |
|
|
Generate_OrientedBoxes ( |
Fit containing minimal-volume oriented boxes to each input mesh and store in ShapeSetOut |
|
|
Generate_ProjectedHulls ( |
Calculate Projected Convex Hulls for each input mesh and store in ShapeSetOut. |
|
|
GetDetectedSimpleShape ( |
||
|
InitializeSourceMeshes ( |
Setup/initialization Initialize internal mesh sets. |
Name |
Description |
|
---|---|---|
|
FSourceMeshCache |
Name |
Description |
|
---|---|---|
|
EProjectedHullAxisMode |
Type/Mode for deciding 3D axis to use in Generate_ProjectedHulls() |