@@ -367,7 +367,6 @@ namespace PBD
367
367
368
368
369
369
// -------------- FEM Based PBD -----------------------------------------------------
370
- private:
371
370
static void computeGradCGreen (
372
371
Real restVolume,
373
372
const Matrix3r &invRestMat,
@@ -390,7 +389,11 @@ namespace PBD
390
389
391
390
392
391
public:
393
- /* * Initialize rest configuration infos which are required by the solver step.
392
+ /* * Implementation of the finite element method described in \n\n
393
+ * Jan Bender, Dan Koschier, Patrick Charrier and Daniel Weber, \n
394
+ * "Position-Based Simulation of Continuous Materials", \n
395
+ * Computers & Graphics 44, 2014\n\n
396
+ * Initialize rest configuration infos which are required by the solver step.
394
397
* Recomputation is only necessary when rest shape changes.
395
398
*/
396
399
static bool init_FEMTriangleConstraint (
@@ -401,6 +404,12 @@ namespace PBD
401
404
Matrix2r &invRestMat
402
405
);
403
406
407
+ /* * Implementation of the finite element method described in \n\n
408
+ * Jan Bender, Dan Koschier, Patrick Charrier and Daniel Weber, \n
409
+ * "Position-Based Simulation of Continuous Materials", \n
410
+ * Computers & Graphics 44, 2014\n\n
411
+ * Solve the continuum mechanical constraint defined for a triangle.
412
+ */
404
413
static bool solve_FEMTriangleConstraint (
405
414
const Vector3r &p0, Real invMass0,
406
415
const Vector3r &p1, Real invMass1,
@@ -414,7 +423,11 @@ namespace PBD
414
423
const Real poissonRatioYX,
415
424
Vector3r &corr0, Vector3r &corr1, Vector3r &corr2);
416
425
417
- /* * Initialize rest configuration infos which are required by the solver step.
426
+ /* * Implementation of the finite element method described in \n\n
427
+ * Jan Bender, Dan Koschier, Patrick Charrier and Daniel Weber, \n
428
+ * "Position-Based Simulation of Continuous Materials", \n
429
+ * Computers & Graphics 44, 2014\n\n
430
+ * Initialize rest configuration infos which are required by the solver step.
418
431
* Recomputation is only necessary when rest shape changes.
419
432
*/
420
433
static bool init_FEMTetraConstraint (
@@ -426,6 +439,12 @@ namespace PBD
426
439
Matrix3r &invRestMat
427
440
);
428
441
442
+ /* * Implementation of the finite element method described in \n\n
443
+ * Jan Bender, Dan Koschier, Patrick Charrier and Daniel Weber, \n
444
+ * "Position-Based Simulation of Continuous Materials", \n
445
+ * Computers & Graphics 44, 2014\n\n
446
+ * Solve the continuum mechanical constraint defined for a tetrahedron.
447
+ */
429
448
static bool solve_FEMTetraConstraint (
430
449
const Vector3r &p0, Real invMass0,
431
450
const Vector3r &p1, Real invMass1,
@@ -438,6 +457,7 @@ namespace PBD
438
457
const bool handleInversion,
439
458
Vector3r &corr0, Vector3r &corr1, Vector3r &corr2, Vector3r &corr3);
440
459
460
+
441
461
/* * Initialize contact between a particle and a tetrahedron and return
442
462
* info which is required by the solver step.
443
463
*
0 commit comments