Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerGeomCacheSampler
Description
Calculate the vertex deltas between the linear skinned mesh (skeletal mesh) and geometry cache. A delta cutoff length can be specified. Deltas with a length longer than this cutoff length will be ignored and set to zero. This can be useful in cases where for some reason due to some mesh errors some deltas are very long. Setting the DeltaCutoffLength to a very large value would essentially disable this filtering and always include all deltas. Typically a good value for the delta cutoff length seems to be 30.
| Name | CalculateVertexDeltas |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerGeomCacheSampler.h |
| Include Path | #include "MLDeformerGeomCacheSampler.h" |
void CalculateVertexDeltas
(
const TArray < FVector3f > & SkinnedPositions,
float DeltaCutoffLength,
TArray < float > & OutVertexDeltas
)
Parameters
| Name | Remarks |
|---|---|
| SkinnedPositions | The vertex positions of the linear skinned mesh, so of the skeletal mesh. |
| DeltaCutoffLength | The delta cutoff length as described above. Usually a value of 30 is a good value, or set to a very large value to disable it. |
| OutVertexDeltas | The array that will receive the deltas, in a float buffer. The buffer will contain 3*NumVerts number of elements, and the layout is (x, y, z, x, y, z, x, y, z...) so 3 values per vertex: x, y and z. |