![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PointWeightMap.h>
Public Member Functions | |
| GENERATED_BODY () | |
| FPointWeightMap () | |
| FPointWeightMap (int32 NumPoints, float Value=0.f) | |
| FPointWeightMap (const TConstArrayView< float > &InValues) | |
| FPointWeightMap (const TConstArrayView< float > &InValues, float Offset, float Scale) | |
| ~FPointWeightMap () | |
| void | Initialize (const int32 NumPoints) |
| template<typename T > | |
| void | Initialize (const FPointWeightMap &Source, T Target) |
| void | Empty () |
| int32 | Num () const |
| const float & | operator[] (int32 Index) const |
| float & | operator[] (int32 Index) |
| float | GetValue (int32 Index) const |
| void | SetValue (int32 Index, float Value) |
| bool | IsBelowThreshold (const int32 Index, const float Threshold=0.1f) const |
| bool | AreAnyBelowThreshold (const int32 Index0, const int32 Index1, const int32 Index2, const float Threshold=0.1f) const |
| bool | AreAllBelowThreshold (const int32 Index0, const int32 Index1, const int32 Index2, const float Threshold=0.1f) const |
| bool | IsZeroed () const |
| void | CalcRanges (float &MinValue, float &MaxValue) |
Public Attributes | |
| TArray< float > | Values |
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
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Return whether all of the specified triangle points have weight below (or equal) to the specified
| Threshold. |
|
inline |
Return whether at least one of the specified triangle points has weight below (or equal) to the specified
| Threshold. |
Calculates Min/Max values based on values.
|
inline |
Empty this map of any values.
| FPointWeightMap::GENERATED_BODY | ( | ) |
Get a value from the map, or return 0 if the index is out of bounds.
| Index | the value/point index to retrieve |
|
inline |
Initialize a weight map from another weight map while enabling and setting a new target.
| Source | the source weight map to copy the values from. |
| Target | the new weight map target. |
Reset this map to the specified number of points, and set all the values to zero.
| NumPoints | the number of points to initialize the map with. |
|
inline |
Return whether the specified point weight is below (or equal) to the specified threshold.
| Index | the value/point index to retrieve |
| Threshold,the | value threshold to test against for. |
|
inline |
Return whether all points' values are zero.
|
inline |
Return the number of values in this map.
Return the current float value for the requested point.
| Index | the value/point index to retrieve, must be within range or it will assert. |
Return the current float value for the requested point.
| Index | the value/point index to retrieve, must be within range or it will assert. |
Set a value in the map checking first whether the index is within bounds.
| Index | the value/point index to set |
| Value | the value to set |