@@ -367,7 +367,6 @@ namespace PBD
367367
368368
369369 // -------------- FEM Based PBD -----------------------------------------------------
370- private:
371370 static void computeGradCGreen (
372371 Real restVolume,
373372 const Matrix3r &invRestMat,
@@ -390,7 +389,11 @@ namespace PBD
390389
391390
392391 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.
394397 * Recomputation is only necessary when rest shape changes.
395398 */
396399 static bool init_FEMTriangleConstraint (
@@ -401,6 +404,12 @@ namespace PBD
401404 Matrix2r &invRestMat
402405 );
403406
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+ */
404413 static bool solve_FEMTriangleConstraint (
405414 const Vector3r &p0, Real invMass0,
406415 const Vector3r &p1, Real invMass1,
@@ -414,7 +423,11 @@ namespace PBD
414423 const Real poissonRatioYX,
415424 Vector3r &corr0, Vector3r &corr1, Vector3r &corr2);
416425
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.
418431 * Recomputation is only necessary when rest shape changes.
419432 */
420433 static bool init_FEMTetraConstraint (
@@ -426,6 +439,12 @@ namespace PBD
426439 Matrix3r &invRestMat
427440 );
428441
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+ */
429448 static bool solve_FEMTetraConstraint (
430449 const Vector3r &p0, Real invMass0,
431450 const Vector3r &p1, Real invMass1,
@@ -438,6 +457,7 @@ namespace PBD
438457 const bool handleInversion,
439458 Vector3r &corr0, Vector3r &corr1, Vector3r &corr2, Vector3r &corr3);
440459
460+
441461 /* * Initialize contact between a particle and a tetrahedron and return
442462 * info which is required by the solver step.
443463 *
0 commit comments