[Bf-blender-cvs] [a18e650] temp_merge_gooseberry_hair: Cleanup: added some comments to the members of Implicit_Data.
Lukas Tönne
noreply at git.blender.org
Mon Jan 19 20:47:57 CET 2015
Commit: a18e6508ce0d5ca92fa81c92c09b92756165cb4a
Author: Lukas Tönne
Date: Wed Sep 3 13:43:37 2014 +0200
Branches: temp_merge_gooseberry_hair
https://developer.blender.org/rBa18e6508ce0d5ca92fa81c92c09b92756165cb4a
Cleanup: added some comments to the members of Implicit_Data.
===================================================================
M source/blender/blenkernel/intern/implicit.c
===================================================================
diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index 010d6e9..c0058d3 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -573,8 +573,24 @@ DO_INLINE void subadd_bfmatrixS_bfmatrixS( fmatrix3x3 *to, fmatrix3x3 *from, flo
// simulator start
///////////////////////////////////////////////////////////////////
typedef struct Implicit_Data {
- lfVector *X, *V, *Xnew, *Vnew, *F, *B, *dV, *z;
- fmatrix3x3 *A, *dFdV, *dFdX, *S, *P, *Pinv, *bigI, *M;
+ /* inputs */
+ fmatrix3x3 *bigI; /* identity (constant) */
+ fmatrix3x3 *M; /* masses */
+ fmatrix3x3 *dFdV, *dFdX; /* force jacobians */
+
+ /* motion state data */
+ lfVector *X, *Xnew; /* positions */
+ lfVector *V, *Vnew; /* velocities */
+ lfVector *F; /* forces */
+
+ /* internal solver data */
+ lfVector *B; /* B for A*dV = B */
+ fmatrix3x3 *A; /* A for A*dV = B */
+
+ lfVector *dV; /* velocity change (solution of A*dV = B) */
+ lfVector *z; /* target velocity in constrained directions */
+ fmatrix3x3 *S; /* filtering matrix for constraints */
+ fmatrix3x3 *P, *Pinv; /* pre-conditioning matrix */
} Implicit_Data;
/* Init constraint matrix */
More information about the Bf-blender-cvs
mailing list