[Bf-blender-cvs] [0f45f4a] master: Cleanup: added some comments to the members of Implicit_Data.

Lukas Tönne noreply at git.blender.org
Tue Jan 20 09:49:30 CET 2015


Commit: 0f45f4a3e25437b1353982f081acc6a833e2fd01
Author: Lukas Tönne
Date:   Wed Sep 3 13:43:37 2014 +0200
Branches: master
https://developer.blender.org/rB0f45f4a3e25437b1353982f081acc6a833e2fd01

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