Blender V5.3
BKE_effect.h File Reference
#include "DNA_listBase.h"

Go to the source code of this file.

Classes

struct  blender::EffectedPoint
struct  blender::GuideEffectorData
struct  blender::EffectorData
struct  blender::EffectorCache
struct  blender::EffectorRelation
struct  blender::SimDebugElement
struct  blender::SimDebugData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PE_WIND_AS_SPEED   1
#define PE_USE_NORMAL_DATA   4
#define PE_VELOCITY_TO_IMPULSE   1
#define _VA_SIM_DEBUG_HASH1(a)
#define _VA_SIM_DEBUG_HASH2(a, b)
#define _VA_SIM_DEBUG_HASH3(a, b, c)
#define _VA_SIM_DEBUG_HASH4(a, b, c, d)
#define _VA_SIM_DEBUG_HASH5(a, b, c, d, e)
#define _VA_SIM_DEBUG_HASH6(a, b, c, d, e, f)
#define _VA_SIM_DEBUG_HASH7(a, b, c, d, e, f, g)
#define _VA_SIM_DEBUG_HASH8(a, b, c, d, e, f, g, h)
#define SIM_DEBUG_HASH(...)
#define BKE_sim_debug_data_add_dot(p, r, g, b, category, ...)
#define BKE_sim_debug_data_add_circle(p, radius, r, g, b, category, ...)
#define BKE_sim_debug_data_add_line(p1, p2, r, g, b, category, ...)
#define BKE_sim_debug_data_add_vector(p, d, r, g, b, category, ...)
#define BKE_sim_debug_data_add_string(p, str, r, g, b, category, ...)
#define BKE_sim_debug_data_remove(...)

Enumerations

enum  blender::eSimDebugElement_Type {
  blender::SIM_DEBUG_ELEM_DOT , blender::SIM_DEBUG_ELEM_CIRCLE , blender::SIM_DEBUG_ELEM_LINE , blender::SIM_DEBUG_ELEM_VECTOR ,
  blender::SIM_DEBUG_ELEM_STRING
}

Functions

struct EffectorWeights * blender::BKE_effector_add_weights (struct Collection *collection)
struct PartDeflect * blender::BKE_partdeflect_new (ePFieldType type)
struct PartDeflect * blender::BKE_partdeflect_copy (const struct PartDeflect *pd_src)
void blender::BKE_partdeflect_free (struct PartDeflect *pd)
ListBaseT< EffectorRelation > * blender::BKE_effector_relations_create (struct Depsgraph *depsgraph, const struct Scene *scene, struct ViewLayer *view_layer, struct Collection *collection)
void blender::BKE_effector_relations_free (ListBaseT< EffectorRelation > *lb)
ListBaseT< EffectorCache > * blender::BKE_effectors_create (struct Depsgraph *depsgraph, struct Object *ob_src, struct ParticleSystem *psys_src, struct EffectorWeights *weights, bool use_rotation)
void blender::BKE_effectors_apply (ListBaseT< EffectorCache > *effectors, ListBaseT< ColliderCache > *colliders, struct EffectorWeights *weights, struct EffectedPoint *point, float *force, float *wind_force, float *impulse)
void blender::BKE_effectors_free (ListBaseT< EffectorCache > *lb)
void blender::pd_point_from_particle (struct ParticleSimulationData *sim, struct ParticleData *pa, struct ParticleKey *state, struct EffectedPoint *point)
void blender::pd_point_from_loc (struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point)
void blender::pd_point_from_soft (struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point)
float blender::effector_falloff (struct EffectorCache *eff, struct EffectorData *efd, struct EffectedPoint *point, struct EffectorWeights *weights)
bool blender::closest_point_on_surface (struct SurfaceModifierData *surmd, const float co[3], float surface_co[3], float surface_nor[3], float surface_vel[3])
bool blender::get_effector_data (struct EffectorCache *eff, struct EffectorData *efd, struct EffectedPoint *point, int real_velocity)
unsigned int blender::BKE_sim_debug_data_hash (int i)
unsigned int blender::BKE_sim_debug_data_hash_combine (unsigned int kx, unsigned int ky)
void blender::BKE_sim_debug_data_set_enabled (bool enable)
bool blender::BKE_sim_debug_data_get_enabled ()
void blender::BKE_sim_debug_data_free ()
void blender::BKE_sim_debug_data_add_element (int type, const float v1[3], const float v2[3], const char *str, float r, float g, float b, const char *category, unsigned int hash)
void blender::BKE_sim_debug_data_remove_element (unsigned int hash)
void blender::BKE_sim_debug_data_clear ()
void blender::BKE_sim_debug_data_clear_category (const char *category)

Variables

SimDebugData * blender::_sim_debug_data = nullptr

Macro Definition Documentation

◆ _VA_SIM_DEBUG_HASH1

#define _VA_SIM_DEBUG_HASH1 ( a)
Value:
(BKE_sim_debug_data_hash(a))

Definition at line 184 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH2

#define _VA_SIM_DEBUG_HASH2 ( a,
b )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH1(b)))
#define _VA_SIM_DEBUG_HASH1(a)
Definition BKE_effect.h:184

Definition at line 185 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH3

#define _VA_SIM_DEBUG_HASH3 ( a,
b,
c )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH2(b, c)))
#define _VA_SIM_DEBUG_HASH2(a, b)
Definition BKE_effect.h:185

Definition at line 187 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH4

#define _VA_SIM_DEBUG_HASH4 ( a,
b,
c,
d )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH3(b, c, d)))
#define _VA_SIM_DEBUG_HASH3(a, b, c)
Definition BKE_effect.h:187

Definition at line 189 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH5

#define _VA_SIM_DEBUG_HASH5 ( a,
b,
c,
d,
e )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH4(b, c, d, e)))
#define _VA_SIM_DEBUG_HASH4(a, b, c, d)
Definition BKE_effect.h:189

Definition at line 191 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH6

#define _VA_SIM_DEBUG_HASH6 ( a,
b,
c,
d,
e,
f )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH5(b, c, d, e, f)))
#define _VA_SIM_DEBUG_HASH5(a, b, c, d, e)
Definition BKE_effect.h:191

Definition at line 193 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH7

#define _VA_SIM_DEBUG_HASH7 ( a,
b,
c,
d,
e,
f,
g )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), \
_VA_SIM_DEBUG_HASH6(b, c, d, e, f, g)))
#define _VA_SIM_DEBUG_HASH6(a, b, c, d, e, f)
Definition BKE_effect.h:193

Definition at line 195 of file BKE_effect.h.

◆ _VA_SIM_DEBUG_HASH8

#define _VA_SIM_DEBUG_HASH8 ( a,
b,
c,
d,
e,
f,
g,
h )
Value:
(BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), \
_VA_SIM_DEBUG_HASH7(b, c, d, e, f, g, h)))
#define _VA_SIM_DEBUG_HASH7(a, b, c, d, e, f, g)
Definition BKE_effect.h:195

Definition at line 198 of file BKE_effect.h.

◆ BKE_sim_debug_data_add_circle

#define BKE_sim_debug_data_add_circle ( p,
radius,
r,
g,
b,
category,
... )
Value:
{ \
const float v2[3] = {radius, 0.0f, 0.0f}; \
BKE_sim_debug_data_add_element( \
SIM_DEBUG_ELEM_CIRCLE, p, v2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
}
#define SIM_DEBUG_HASH(...)
Definition BKE_effect.h:202

Definition at line 251 of file BKE_effect.h.

Referenced by blender::cloth_continuum_step(), and blender::SIM_hair_volume_solve_divergence().

◆ BKE_sim_debug_data_add_dot

#define BKE_sim_debug_data_add_dot ( p,
r,
g,
b,
category,
... )
Value:
{ \
const float v2[3] = {0.0f, 0.0f, 0.0f}; \
BKE_sim_debug_data_add_element( \
SIM_DEBUG_ELEM_DOT, p, v2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
}

Definition at line 244 of file BKE_effect.h.

Referenced by blender::cloth_calc_spring_force(), blender::cloth_continuum_step(), and blender::SIM_hair_volume_solve_divergence().

◆ BKE_sim_debug_data_add_line

#define BKE_sim_debug_data_add_line ( p1,
p2,
r,
g,
b,
category,
... )
Value:
{ \
BKE_sim_debug_data_add_element( \
SIM_DEBUG_ELEM_LINE, p1, p2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
}

Definition at line 258 of file BKE_effect.h.

Referenced by blender::cloth_calc_spring_force().

◆ BKE_sim_debug_data_add_string

#define BKE_sim_debug_data_add_string ( p,
str,
r,
g,
b,
category,
... )
Value:
{ \
BKE_sim_debug_data_add_element( \
SIM_DEBUG_ELEM_STRING, p, NULL, str, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
}
#define str(s)

Definition at line 270 of file BKE_effect.h.

◆ BKE_sim_debug_data_add_vector

#define BKE_sim_debug_data_add_vector ( p,
d,
r,
g,
b,
category,
... )
Value:
{ \
BKE_sim_debug_data_add_element( \
SIM_DEBUG_ELEM_VECTOR, p, d, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
}

Definition at line 264 of file BKE_effect.h.

Referenced by blender::cloth_calc_spring_force(), blender::cloth_continuum_step(), and blender::SIM_hair_volume_solve_divergence().

◆ BKE_sim_debug_data_remove

#define BKE_sim_debug_data_remove ( ...)
Value:
BKE_sim_debug_data_remove_element(SIM_DEBUG_HASH(__VA_ARGS__))

Definition at line 276 of file BKE_effect.h.

◆ PE_USE_NORMAL_DATA

#define PE_USE_NORMAL_DATA   4

Definition at line 172 of file BKE_effect.h.

Referenced by blender::get_effector_data(), and blender::precalculate_effector().

◆ PE_VELOCITY_TO_IMPULSE

#define PE_VELOCITY_TO_IMPULSE   1

Definition at line 175 of file BKE_effect.h.

Referenced by blender::BKE_effectors_apply().

◆ PE_WIND_AS_SPEED

#define PE_WIND_AS_SPEED   1

Definition at line 171 of file BKE_effect.h.

Referenced by blender::BKE_effectors_apply(), and blender::pd_point_from_soft().

◆ SIM_DEBUG_HASH

#define SIM_DEBUG_HASH ( ...)
Value:
VA_NARGS_CALL_OVERLOAD(_VA_SIM_DEBUG_HASH, __VA_ARGS__)
#define VA_NARGS_CALL_OVERLOAD(name,...)

Definition at line 202 of file BKE_effect.h.