[Bf-blender-cvs] [cfea750] hair_immediate_fixes: Cleanup: added some comments to the members of Implicit_Data.
Lukas Tönne
noreply at git.blender.org
Wed Sep 3 23:55:03 CEST 2014
Commit: cfea750197a7aeb67acc223bdda520b7d7d3886d
Author: Lukas Tönne
Date: Wed Sep 3 13:43:37 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBcfea750197a7aeb67acc223bdda520b7d7d3886d
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 de74f84..1a46000 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -736,8 +736,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