Navigation
API > API/Plugins > API/Plugins/DNACalibLib > API/Plugins/DNACalibLib/SetVertexPositionsCommand
Description
Available operations are: Interpolate, Add, Subtract and Multiply. Each position is calculated based on the provided operation type in the following way: Interpolate: \f$newValue = previousValue * (1 - weight) + setValue * weight\f$\n Add: \f$newValue = previousValue + (setValue * weight)\f$\n Subtract: \f$newValue = previousValue - (setValue * weight)\f$\n Multiply: \f$newValue = previousValue * (setValue * weight)\f$\n
setValue is the value from new positions that were set, and weight is the value from masks array.
| Name | setOperation |
| Type | function |
| Header File | /Engine/Plugins/Animation/DNACalib/Source/DNACalibLib/Public/dnacalib/commands/SetVertexPositionsCommand.h |
| Include Path | #include "dnacalib/commands/SetVertexPositionsCommand.h" |
| Source | /Engine/Plugins/Animation/DNACalib/Source/DNACalibLib/Private/dnacalib/commands/SetVertexPositionsCommand.cpp |
void setOperation
(
VectorOperation operation
)
Parameters
| Name | Remarks |
|---|---|
| operation | The operation to use. |