Module |
|
Header |
/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/PointWeightMap.h |
Include |
#include "PointWeightMap.h" |
struct FPointWeightMap
A mask is simply some storage for a physical mesh parameter painted onto clothing. Used in the editor for users to paint onto and then target to a parameter, which is then later applied to a phys mesh
Name | Description | ||
---|---|---|---|
|
bEnabled |
Whether this mask is enabled and able to effect final mesh values |
|
|
CurrentTarget |
The currently targeted parameter for the mask, EWeightMapTargetCommon |
|
|
Name |
Name of the mask, mainly for users to differentiate |
|
|
TArray< float > |
Values |
The actual values stored in the mask |
Name | Description | |
---|---|---|
|
FPointWeightMap() |
Name | Description | |
---|---|---|
|
~FPointWeightMap() |
Name | Description | ||
---|---|---|---|
|
AreAnyBelowThreshold |
Return whether one of the specified triangle has at least one point weight below (or equal) to the specified |
|
|
CalcRanges ( |
Calculates Min/Max values based on values. |
|
|
Empty() |
Empty this map of any values. |
|
|
float |
GetValue ( |
Get a value from the map, or return 0 if the index is out of bounds. |
|
Initialize ( |
Reset this map to the specified number of points, and set all the values to zero. |
|
|
Initialize ( |
Initialize a weight map from another weight map while enabling and setting a new target. |
|
|
IsBelowThreshold ( |
Return whether the specified point weight is below (or equal) to the specified threshold. |
|
|
IsZeroed() |
Return whether all points' values are zero. |
|
|
Num() |
Return the number of values in this map. |
|
|
SetValue ( |
Set a value in the map checking first whether the index is within bounds. |
Name | Description | ||
---|---|---|---|
|
const float ... |
operator[] ( |
Return the current float value for the requested point. |
|
float & |
operator[] ( |
Return the current float value for the requested point. |