Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerEditorModel
Description
Debug draw specific morph targets using lines and points. This can show the user what deltas are included in which morph target.
| Name | DrawMorphTarget |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerEditorModel.h |
| Include Path | #include "MLDeformerEditorModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp |
void DrawMorphTarget
(
FPrimitiveDrawInterface * PDI,
const TArray < FVector3f > & MorphDeltas,
float DeltaThreshold,
int32 MorphTargetIndex,
const FVector & DrawOffset
)
Parameters
| Name | Remarks |
|---|---|
| PDI | A pointer to the draw interface. |
| MorphDeltas | A buffer of deltas for ALL morph targets. The size of the buffer must be a multiple of Model->GetBaseNumVerts(). So the layout of this buffer is [Morph0_Deltas][Morph1_Deltas][Morph2_Deltas] etc. |
| DeltaThreshold | Deltas with a length larger or equal to the given threshold value will be colored differently than the ones smaller than this threshold. |
| MorphTargetIndex | The morph target number to visualize. |
| DrawOffset | An offset to perform the debug draw at. |