|
Blender V5.3
|
#include <algorithm>#include <cmath>#include <cstdlib>#include <cstring>#include "CLG_log.h"#include "MEM_guardedalloc.h"#include "DNA_collection_types.h"#include "DNA_curve_types.h"#include "DNA_lattice_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_listbase.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_threads.hh"#include "BLI_time.hh"#include "BLI_utildefines.hh"#include "BKE_collision.h"#include "BKE_curve.hh"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_effect.h"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_mesh.hh"#include "BKE_modifier.hh"#include "BKE_pointcache.h"#include "BKE_scene.hh"#include "BKE_softbody.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"Go to the source code of this file.
Classes | |
| struct | blender::BodySpring |
| struct | blender::BodyFace |
| struct | blender::ReferenceVert |
| struct | blender::ReferenceState |
| struct | blender::SBScratch |
| struct | blender::SB_thread_context |
| struct | blender::CCDF_MinMax |
| struct | blender::ccd_Mesh |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | MID_PRESERVE 1 |
| #define | SOFTGOALSNAP 0.999f |
| #define | HEUNWARNLIMIT 1 |
| #define | BSF_INTERSECT 1 |
| #define | SBF_DOFUZZY 1 |
| #define | SBF_OUTOFCOLLISION 2 |
| #define | BFF_INTERSECT 1 |
| #define | BFF_CLOSEVERT 2 |
Typedefs | |
| using | blender::ColliderMeshMap = Map<Object *, struct ccd_Mesh *> |
Enumerations | |
| enum | blender::type_spring { blender::SB_EDGE = 1 , blender::SB_BEND = 2 , blender::SB_STIFFQUAD = 3 , blender::SB_HANDLE = 4 } |
Functions | |
| static void | blender::free_softbody_intern (SoftBody *sb) |
| static float | blender::sb_grav_force_scale (Object *) |
| static float | blender::sb_fric_force_scale (Object *) |
| static float | blender::sb_time_scale (Object *ob) |
| static float | blender::_final_goal (Object *ob, BodyPoint *bp) |
| static float | blender::_final_mass (Object *ob, BodyPoint *bp) |
| static ccd_Mesh * | blender::ccd_mesh_make (Object *ob) |
| static void | blender::ccd_mesh_update (Object *ob, ccd_Mesh *pccd_M) |
| static void | blender::ccd_mesh_free (ccd_Mesh *ccdm) |
| static void | blender::ccd_build_deflector_hash_single (ColliderMeshMap *hash, Object *ob) |
| static void | blender::ccd_build_deflector_hash (Depsgraph *depsgraph, Collection *collection, Object *vertexowner, ColliderMeshMap *hash) |
| static void | blender::ccd_update_deflector_hash_single (ColliderMeshMap *hash, Object *ob) |
| static void | blender::ccd_update_deflector_hash (Depsgraph *depsgraph, Collection *collection, Object *vertexowner, ColliderMeshMap *hash) |
| static int | blender::count_mesh_quads (Mesh *mesh) |
| static void | blender::add_mesh_quad_diag_springs (Object *ob) |
| static void | blender::add_2nd_order_roller (Object *ob, float, int *counter, int addsprings) |
| static void | blender::add_2nd_order_springs (Object *ob, float stiffness) |
| static void | blender::add_bp_springlist (BodyPoint *bp, int springID) |
| static void | blender::build_bps_springlist (Object *ob) |
| static void | blender::calculate_collision_balls (Object *ob) |
| static void | blender::renew_softbody (Object *ob, int totpoint, int totspring) |
| static void | blender::free_softbody_baked (SoftBody *sb) |
| static void | blender::free_scratch (SoftBody *sb) |
| static int | blender::query_external_colliders (Depsgraph *depsgraph, Collection *collection) |
| static int | blender::sb_detect_aabb_collisionCached (float[3], Object *vertexowner, float) |
| static int | blender::sb_detect_face_pointCached (const float face_v1[3], const float face_v2[3], const float face_v3[3], float *damp, float force[3], Object *vertexowner, float time) |
| static int | blender::sb_detect_face_collisionCached (const float face_v1[3], const float face_v2[3], const float face_v3[3], float *damp, float force[3], Object *vertexowner, float time) |
| static void | blender::scan_for_ext_face_forces (Object *ob, float timenow) |
| static int | blender::sb_detect_edge_collisionCached (const float edge_v1[3], const float edge_v2[3], float *damp, float force[3], Object *vertexowner, float time) |
| static void | blender::_scan_for_ext_spring_forces (Scene *scene, Object *ob, float timenow, int ifirst, int ilast, ListBaseT< EffectorCache > *effectors) |
| static void * | blender::exec_scan_for_ext_spring_forces (void *data) |
| static void | blender::sb_sfesf_threads_run (Depsgraph *depsgraph, Scene *scene, Object *ob, float timenow, int totsprings, int *ptr_to_break_func(void)) |
| static int | blender::choose_winner (float *w, float *pos, float *a, float *b, float *c, float *ca, float *cb, float *cc) |
| static int | blender::sb_detect_vertex_collisionCached (float opco[3], float facenormal[3], float *damp, float force[3], Object *vertexowner, float time, float vel[3], float *intrusion) |
| static int | blender::sb_deflect_face (Object *ob, float *actpos, float *facenormal, float *force, float *cf, float time, float *vel, float *intrusion) |
| static void | blender::sb_spring_force (Object *ob, int bpi, BodySpring *bs, float iks, float) |
| static int | blender::_softbody_calc_forces_slice_in_a_thread (Scene *scene, Object *ob, float forcetime, float timenow, int ifirst, int ilast, int *ptr_to_break_func(void), ListBaseT< EffectorCache > *effectors, int do_deflector, float fieldfactor, float windfactor) |
| static void * | blender::exec_softbody_calc_forces (void *data) |
| static void | blender::sb_cf_threads_run (Scene *scene, Object *ob, float forcetime, float timenow, int totpoint, int *ptr_to_break_func(void), ListBaseT< EffectorCache > *effectors, int do_deflector, float fieldfactor, float windfactor) |
| static void | blender::softbody_calc_forces (Depsgraph *depsgraph, Scene *scene, Object *ob, float forcetime, float timenow) |
| static void | blender::softbody_apply_forces (Object *ob, float forcetime, int mode, float *err, int mid_flags) |
| static void | blender::softbody_restore_prev_step (Object *ob) |
| static void | blender::softbody_apply_goalsnap (Object *ob) |
| static void | blender::apply_spring_memory (Object *ob) |
| static void | blender::interpolate_exciter (Object *ob, int timescale, int time) |
| static void | blender::springs_from_mesh (Object *ob) |
| static void | blender::mesh_to_softbody (Object *ob) |
| static void | blender::mesh_faces_to_scratch (Object *ob) |
| static void | blender::reference_to_scratch (Object *ob) |
| static float | blender::globallen (float *v1, float *v2, Object *ob) |
| static void | blender::makelatticesprings (Lattice *lt, BodySpring *bs, int dostiff, Object *ob) |
| static void | blender::lattice_to_softbody (Object *ob) |
| static void | blender::curve_surf_to_softbody (Object *ob) |
| static void | blender::softbody_to_object (Object *ob, float(*vertexCos)[3], int numVerts, int local) |
| static void | blender::sb_new_scratch (SoftBody *sb) |
| struct SoftBody * | blender::sbNew () |
| void | blender::sbFree (struct Object *ob) |
| SoftBody * | blender::sbCopy (struct SoftBody *sb, int flag) |
| void | blender::sbFreeSimulation (struct SoftBody *sb) |
| void | blender::sbObjectToSoftbody (struct Object *ob) |
| static bool | blender::object_has_edges (const Object *ob) |
| void | blender::sbSetInterruptCallBack (int(*f)()) |
| static void | blender::softbody_update_positions (Object *ob, SoftBody *sb, float(*vertexCos)[3], int numVerts) |
| void | blender::SB_estimate_transform (Object *ob, float lloc[3], float lrot[3][3], float lscale[3][3]) |
| static void | blender::softbody_reset (Object *ob, SoftBody *sb, float(*vertexCos)[3], int numVerts) |
| static void | blender::softbody_step (Depsgraph *depsgraph, Scene *scene, Object *ob, SoftBody *sb, float dtime) |
| static void | blender::sbStoreLastFrame (Depsgraph *depsgraph, Object *object, float framenr) |
| void | blender::sbObjectStep (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, float cfra, float(*vertexCos)[3], int numVerts) |
Variables | |
| static CLG_LogRef | blender::LOG = {"physics.softbody"} |
| static int(*) | blender::SB_localInterruptCallBack () = nullptr |
| static float | blender::SoftHeunTol = 1.0f |
| static const int | blender::CCD_SAFETY = 190561 |
| #define BFF_CLOSEVERT 2 |
Definition at line 148 of file softbody.cc.
Referenced by blender::scan_for_ext_face_forces().
| #define BFF_INTERSECT 1 |
Definition at line 147 of file softbody.cc.
Referenced by blender::scan_for_ext_face_forces().
| #define BSF_INTERSECT 1 |
Definition at line 141 of file softbody.cc.
Referenced by blender::_scan_for_ext_spring_forces(), and blender::_softbody_calc_forces_slice_in_a_thread().
| #define HEUNWARNLIMIT 1 |
Definition at line 139 of file softbody.cc.
Referenced by blender::softbody_step().
| #define MID_PRESERVE 1 |
Definition at line 133 of file softbody.cc.
Referenced by blender::softbody_apply_forces(), and blender::softbody_step().
| #define SBF_DOFUZZY 1 |
Definition at line 144 of file softbody.cc.
Referenced by blender::_softbody_calc_forces_slice_in_a_thread(), blender::softbody_apply_forces(), and blender::softbody_step().
| #define SBF_OUTOFCOLLISION 2 |
Definition at line 145 of file softbody.cc.
Referenced by blender::_softbody_calc_forces_slice_in_a_thread(), and blender::curve_surf_to_softbody().
| #define SOFTGOALSNAP 0.999f |
Definition at line 135 of file softbody.cc.