Blender
V3.3
|
#include "BLI_array.hh"
#include "BLI_color.hh"
#include "BLI_cpp_type.hh"
#include "BLI_math_color.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BKE_customdata.h"
Go to the source code of this file.
Namespaces | |
blender | |
blender::attribute_math | |
Typedefs | |
Mix a dynamic amount of values with weights for many elements. | |
This section provides an abstraction for "mixers". The abstraction encapsulates details about how different types should be mixed. Usually #DefaultMixer<T> should be used to get a mixer for a specific type. | |
template<typename T > | |
using | blender::attribute_math::DefaultPropatationMixer = typename DefaultPropatationMixerStruct< T >::type |
template<typename T > | |
using | blender::attribute_math::DefaultMixer = typename DefaultMixerStruct< T >::type |
Functions | |
template<typename Func > | |
void | blender::attribute_math::convert_to_static_type (const CPPType &cpp_type, const Func &func) |
template<typename Func > | |
void | blender::attribute_math::convert_to_static_type (const eCustomDataType data_type, const Func &func) |
Mix three values of the same type. | |
This is typically used to interpolate values within a triangle. | |
template<typename T > | |
T | blender::attribute_math::mix3 (const float3 &weights, const T &v0, const T &v1, const T &v2) |
template<> | |
int8_t | blender::attribute_math::mix3 (const float3 &weights, const int8_t &v0, const int8_t &v1, const int8_t &v2) |
template<> | |
bool | blender::attribute_math::mix3 (const float3 &weights, const bool &v0, const bool &v1, const bool &v2) |
template<> | |
int | blender::attribute_math::mix3 (const float3 &weights, const int &v0, const int &v1, const int &v2) |
template<> | |
float | blender::attribute_math::mix3 (const float3 &weights, const float &v0, const float &v1, const float &v2) |
template<> | |
float2 | blender::attribute_math::mix3 (const float3 &weights, const float2 &v0, const float2 &v1, const float2 &v2) |
template<> | |
float3 | blender::attribute_math::mix3 (const float3 &weights, const float3 &v0, const float3 &v1, const float3 &v2) |
template<> | |
ColorGeometry4f | blender::attribute_math::mix3 (const float3 &weights, const ColorGeometry4f &v0, const ColorGeometry4f &v1, const ColorGeometry4f &v2) |
template<> | |
ColorGeometry4b | blender::attribute_math::mix3 (const float3 &weights, const ColorGeometry4b &v0, const ColorGeometry4b &v1, const ColorGeometry4b &v2) |
Mix two values of the same type. | |
This is just basic linear interpolation. | |
template<typename T > | |
T | blender::attribute_math::mix2 (float factor, const T &a, const T &b) |
template<> | |
bool | blender::attribute_math::mix2 (const float factor, const bool &a, const bool &b) |
template<> | |
int8_t | blender::attribute_math::mix2 (const float factor, const int8_t &a, const int8_t &b) |
template<> | |
int | blender::attribute_math::mix2 (const float factor, const int &a, const int &b) |
template<> | |
float | blender::attribute_math::mix2 (const float factor, const float &a, const float &b) |
template<> | |
float2 | blender::attribute_math::mix2 (const float factor, const float2 &a, const float2 &b) |
template<> | |
float3 | blender::attribute_math::mix2 (const float factor, const float3 &a, const float3 &b) |
template<> | |
ColorGeometry4f | blender::attribute_math::mix2 (const float factor, const ColorGeometry4f &a, const ColorGeometry4f &b) |
template<> | |
ColorGeometry4b | blender::attribute_math::mix2 (const float factor, const ColorGeometry4b &a, const ColorGeometry4b &b) |