|
Blender
V2.93
|
Classes | |
| class | SimpleMixer |
| class | SimpleMixerWithAccumulationType |
| class | Color4fMixer |
| struct | DefaultMixerStruct |
| struct | DefaultMixerStruct< float > |
| struct | DefaultMixerStruct< float2 > |
| struct | DefaultMixerStruct< float3 > |
| struct | DefaultMixerStruct< Color4f > |
| struct | DefaultMixerStruct< int > |
| struct | DefaultMixerStruct< bool > |
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 | DefaultMixer = typename DefaultMixerStruct< T >::type |
Functions | |
| template<typename Func > | |
| void | convert_to_static_type (const CustomDataType 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 | mix3 (const float3 &weights, const T &v0, const T &v1, const T &v2) |
| template<> | |
| bool | mix3 (const float3 &weights, const bool &v0, const bool &v1, const bool &v2) |
| template<> | |
| int | mix3 (const float3 &weights, const int &v0, const int &v1, const int &v2) |
| template<> | |
| float | mix3 (const float3 &weights, const float &v0, const float &v1, const float &v2) |
| template<> | |
| float2 | mix3 (const float3 &weights, const float2 &v0, const float2 &v1, const float2 &v2) |
| template<> | |
| float3 | mix3 (const float3 &weights, const float3 &v0, const float3 &v1, const float3 &v2) |
| template<> | |
| Color4f | mix3 (const float3 &weights, const Color4f &v0, const Color4f &v1, const Color4f &v2) |
| using blender::attribute_math::DefaultMixer = typedef typename DefaultMixerStruct<T>::type |
Definition at line 252 of file BKE_attribute_math.hh.
| void blender::attribute_math::convert_to_static_type | ( | const CustomDataType | data_type, |
| const Func & | func | ||
| ) |
Utility function that simplifies calling a templated function based on a custom data type.
Definition at line 30 of file BKE_attribute_math.hh.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, and CD_PROP_INT32.
Referenced by blender::bke::adapt_mesh_domain_corner_to_edge(), blender::bke::adapt_mesh_domain_corner_to_face(), blender::bke::adapt_mesh_domain_corner_to_point(), blender::bke::adapt_mesh_domain_edge_to_corner(), blender::bke::adapt_mesh_domain_edge_to_face(), blender::bke::adapt_mesh_domain_edge_to_point(), blender::bke::adapt_mesh_domain_face_to_corner(), blender::bke::adapt_mesh_domain_face_to_edge(), blender::bke::adapt_mesh_domain_face_to_point(), blender::bke::adapt_mesh_domain_point_to_corner(), blender::bke::adapt_mesh_domain_point_to_edge(), blender::bke::adapt_mesh_domain_point_to_face(), blender::nodes::copy_attributes_based_on_mask(), and blender::nodes::interpolate_existing_attributes().
|
inline |
Definition at line 65 of file BKE_attribute_math.hh.
References v1, v2, blender::float3::x, blender::float3::y, and blender::float3::z.
|
inline |
Definition at line 94 of file BKE_attribute_math.hh.
References interp_v4_v4v4v4(), result, v1, and v2.
|
inline |
Definition at line 76 of file BKE_attribute_math.hh.
References v1, v2, blender::float3::x, blender::float3::y, and blender::float3::z.
|
inline |
Definition at line 82 of file BKE_attribute_math.hh.
References v1, v2, blender::float3::x, blender::float3::y, and blender::float3::z.
|
inline |
Definition at line 88 of file BKE_attribute_math.hh.
References v1, v2, blender::float3::x, blender::float3::y, and blender::float3::z.
|
inline |
Definition at line 70 of file BKE_attribute_math.hh.
References v1, v2, blender::float3::x, blender::float3::y, and blender::float3::z.