Blender  V3.3
Public Member Functions | List of all members
blender::attribute_math::BooleanPropagationMixer Class Reference

#include <BKE_attribute_math.hh>

Public Member Functions

 BooleanPropagationMixer (MutableSpan< bool > buffer)
 
void mix_in (const int64_t index, const bool value, [[maybe_unused]] const float weight=1.0f)
 
void finalize ()
 

Detailed Description

Mixes together booleans with "or" while fitting the same interface as the other mixers in order to be simpler to use. This mixing method has a few benefits:

Definition at line 232 of file BKE_attribute_math.hh.

Constructor & Destructor Documentation

◆ BooleanPropagationMixer()

blender::attribute_math::BooleanPropagationMixer::BooleanPropagationMixer ( MutableSpan< bool buffer)
inline
Parameters
bufferSpan where the interpolated values should be stored.

Definition at line 240 of file BKE_attribute_math.hh.

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

Member Function Documentation

◆ finalize()

void blender::attribute_math::BooleanPropagationMixer::finalize ( )
inline

Does not do anything, since the mixing is trivial.

Definition at line 256 of file BKE_attribute_math.hh.

◆ mix_in()

void blender::attribute_math::BooleanPropagationMixer::mix_in ( const int64_t  index,
const bool  value,
[[maybe_unused] ] const float  weight = 1.0f 
)
inline

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

Definition at line 248 of file BKE_attribute_math.hh.


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