Blender V5.3
SIM_mass_spring.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_cloth_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_linklist.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines.hh"
#include "BKE_cloth.hh"
#include "BKE_collision.h"
#include "BKE_effect.h"
#include "SIM_mass_spring.h"
#include "implicit.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static int blender::cloth_count_nondiag_blocks (Cloth *cloth)
static bool blender::cloth_get_pressure_weights (ClothModifierData *clmd, const int3 &vert_tri, float *r_weights)
static void blender::cloth_calc_pressure_gradient (ClothModifierData *clmd, const float gradient_vector[3], float *r_vertex_pressure)
static float blender::cloth_calc_volume (ClothModifierData *clmd)
static float blender::cloth_calc_rest_volume (ClothModifierData *clmd)
static float blender::cloth_calc_average_pressure (ClothModifierData *clmd, const float *vertex_pressure)
int blender::SIM_cloth_solver_init (Object *, ClothModifierData *clmd)
void blender::SIM_mass_spring_set_implicit_vertex_mass (Implicit_Data *data, int index, float mass)
void blender::SIM_cloth_solver_free (ClothModifierData *clmd)
void blender::SIM_cloth_solver_set_positions (ClothModifierData *clmd)
void blender::SIM_cloth_solver_set_volume (ClothModifierData *clmd)
static void blender::cloth_setup_constraints (ClothModifierData *clmd)
static int UNUSED_FUNCTION blender::cloth_calc_helper_forces (Object *, ClothModifierData *clmd, float(*initial_cos)[3], float, float dt)
BLI_INLINE void blender::cloth_calc_spring_force (ClothModifierData *clmd, ClothSpring *s)
static void blender::hair_get_boundbox (ClothModifierData *clmd, float3 &gmin, float3 &gmax)
static void blender::cloth_calc_force (Scene *scene, ClothModifierData *clmd, float, ListBaseT< EffectorCache > *effectors, float time)
BLI_INLINE void blender::cloth_get_grid_location (Implicit_Data *data, float cell_scale, const float cell_offset[3], int index, float x[3], float v[3])
BLI_INLINE LinkNode * blender::hair_spring_next (LinkNode *spring_link)
static LinkNode * blender::cloth_continuum_add_hair_segments (HairGrid *grid, const float cell_scale, const float cell_offset[3], Cloth *cloth, LinkNode *spring_link)
static void blender::cloth_continuum_fill_grid (HairGrid *grid, Cloth *cloth)
static void blender::cloth_continuum_step (ClothModifierData *clmd, float dt)
static void blender::cloth_calc_average_acceleration (ClothModifierData *clmd, float dt)
static void blender::cloth_solve_collisions (Depsgraph *depsgraph, Object *ob, ClothModifierData *clmd, float step, float dt)
static void blender::cloth_clear_result (ClothModifierData *clmd)
static void blender::cloth_record_result (ClothModifierData *clmd, ImplicitSolverResult *result, float dt)
int blender::SIM_cloth_solve (Depsgraph *depsgraph, Object *ob, float frame, ClothModifierData *clmd, ListBaseT< EffectorCache > *effectors)

Variables

static float blender::I3 [3][3] = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}}