Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon
References
| Module | ClothingSystemRuntimeCommon |
| Header | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/PointWeightMap.h |
| Include | #include "PointWeightMap.h" |
Syntax
struct FPointWeightMap
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnabled | Whether this mask is enabled and able to effect final mesh values | |
| uint8 | CurrentTarget | The currently targeted parameter for the mask, EWeightMapTargetCommon | |
| FName | Name | Name of the mask, mainly for users to differentiate | |
| TArray< float > | Values | The actual values stored in the mask |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPointWeightMap
(
const TConstArrayView< float >& InValues |
|||
FPointWeightMap
(
int32 NumPoints, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AreAllBelowThreshold
(
const int32 Index0, |
Return whether all of the specified triangle points have weight below (or equal) to the specified | |
| bool | AreAnyBelowThreshold
(
const int32 Index0, |
Return whether at least one of the specified triangle points has weight below (or equal) to the specified | |
| void | CalcRanges
(
float& MinValue, |
Calculates Min/Max values based on values. | |
| void | Empty () |
Empty this map of any values. | |
| float | GetValue
(
int32 Index |
Get a value from the map, or return 0 if the index is out of bounds. | |
| void | Initialize
(
const FPointWeightMap& Source, |
Initialize a weight map from another weight map while enabling and setting a new target. | |
| void | Initialize
(
const int32 NumPoints |
Reset this map to the specified number of points, and set all the values to zero. | |
| bool | IsBelowThreshold
(
const int32 Index, |
Return whether the specified point weight is below (or equal) to the specified threshold. | |
| bool | IsZeroed () |
Return whether all points' values are zero. | |
| int32 | Num () |
Return the number of values in this map. | |
| void | SetValue
(
int32 Index, |
Set a value in the map checking first whether the index is within bounds. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const float & | operator[]
(
int32 Index |
Return the current float value for the requested point. | |
| float & | operator[]
(
int32 Index |
Return the current float value for the requested point. |