|
Blender V4.3
|
#include <BKE_attribute_math.hh>
Public Member Functions | |
| SimpleMixer (MutableSpan< T > buffer, T default_value={}) | |
| SimpleMixer (MutableSpan< T > buffer, const IndexMask &mask, T default_value={}) | |
| void | set (const int64_t index, const T &value, const float weight=1.0f) |
| void | mix_in (const int64_t index, const T &value, const float weight=1.0f) |
| void | finalize () |
| void | finalize (const IndexMask &mask) |
Definition at line 285 of file BKE_attribute_math.hh.
|
inline |
| buffer | Span where the interpolated values should be stored. |
| default_value | Output value for an element that has not been affected by a mix_in. |
Definition at line 296 of file BKE_attribute_math.hh.
|
inline |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 304 of file BKE_attribute_math.hh.
|
inline |
Has to be called before the buffer provided in the constructor is used.
Definition at line 332 of file BKE_attribute_math.hh.
References blender::bke::attribute_math::SimpleMixer< T >::finalize(), and blender::MutableSpan< T >::size().
Referenced by blender::bke::attribute_math::SimpleMixer< T >::finalize().
|
inline |
Definition at line 337 of file BKE_attribute_math.hh.
|
inline |
Mix a #value into the element with the given #index.
Definition at line 323 of file BKE_attribute_math.hh.
|
inline |
Set a #value into the element with the given #index.
Definition at line 314 of file BKE_attribute_math.hh.