Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerMorphModelEditorModel
Description
Process and filter a vertex delta position and normal and apply scaling to it. The scaling of these deltas is based on a given morph mask weight, a global mask weight, and a delta zero threshold, which filters out small deltas entirely.
| Name | ProcessVertexDelta |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerMorphModelEditorModel.h |
| Include Path | #include "MLDeformerMorphModelEditorModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerMorphModelEditorModel.cpp |
bool ProcessVertexDelta
(
FVector3f & OutScaledDelta,
FVector3f & OutScaledDeltaNormal,
const FVector3f RawDelta,
const FVector3f RawDeltaNormal,
float DeltaThreshold,
float MorphMaskWeight,
float GlobalMaskWeight
) const
Returns true if this vertex should be included in the morph target, or false if it has been filtered out based on the provided delta threshold.
Parameters
| Name | Remarks |
|---|---|
| OutScaledDelta | The scaled version of the delta position. |
| OutScaledDeltaNormal | The scaled version of the delta normal. |
| RawDelta | The unscaled raw delta position. |
| RawDeltaNormal | The unscaled raw delta normal. |
| DeltaThreshold | Any scaled vertex delta position vector with a length smaller or equal to this value, will cause this method to return false. This basically can be used to filter out small deltas. |
| MorphMaskWeight | The weight value of the morph target mask for this vertex. This can be values larger than 1 as well, but always larger or equal to 0. |
| GlobalMaskWeight | The global weight value for this vertex. This global mask / weight is used to disable the deformer in specific regions on the mesh, for example where the head or neck connects with the body. |