Blender  V3.3
Public Member Functions | List of all members
blender::attribute_math::SimpleMixer< T > Class Template Reference

#include <BKE_attribute_math.hh>

Public Member Functions

 SimpleMixer (MutableSpan< T > buffer, T default_value={})
 
void mix_in (const int64_t index, const T &value, const float weight=1.0f)
 
void finalize ()
 

Detailed Description

template<typename T>
class blender::attribute_math::SimpleMixer< T >

Definition at line 179 of file BKE_attribute_math.hh.

Constructor & Destructor Documentation

◆ SimpleMixer()

template<typename T >
blender::attribute_math::SimpleMixer< T >::SimpleMixer ( MutableSpan< T buffer,
T  default_value = {} 
)
inline
Parameters
bufferSpan where the interpolated values should be stored.
default_valueOutput value for an element that has not been affected by a mix_in.

Definition at line 190 of file BKE_attribute_math.hh.

Member Function Documentation

◆ finalize()

template<typename T >
void blender::attribute_math::SimpleMixer< T >::finalize ( )
inline

Has to be called before the buffer provided in the constructor is used.

Definition at line 210 of file BKE_attribute_math.hh.

References blender::MutableSpan< T >::index_range().

◆ mix_in()

template<typename T >
void blender::attribute_math::SimpleMixer< T >::mix_in ( const int64_t  index,
const T value,
const float  weight = 1.0f 
)
inline

Mix a #value into the element with the given #index.

Definition at line 200 of file BKE_attribute_math.hh.

References BLI_assert.


The documentation for this class was generated from the following file: