Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/simulation/intern')
-rw-r--r--source/blender/simulation/intern/ConstrainedConjugateGradient.h2
-rw-r--r--source/blender/simulation/intern/hair_volume.cpp6
-rw-r--r--source/blender/simulation/intern/implicit_blender.c12
-rw-r--r--source/blender/simulation/intern/implicit_eigen.cpp8
4 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/simulation/intern/ConstrainedConjugateGradient.h b/source/blender/simulation/intern/ConstrainedConjugateGradient.h
index 11dc3ebe91b..c5a2827a09f 100644
--- a/source/blender/simulation/intern/ConstrainedConjugateGradient.h
+++ b/source/blender/simulation/intern/ConstrainedConjugateGradient.h
@@ -68,7 +68,7 @@ EIGEN_DONT_INLINE void constrained_conjugate_gradient(const MatrixType &mat,
RealScalar rhsNorm2 = (filter * rhs).squaredNorm();
if (rhsNorm2 == 0) {
- /* XXX TODO set constrained result here */
+ /* XXX TODO: set constrained result here. */
x.setZero();
iters = 0;
tol_error = 0;
diff --git a/source/blender/simulation/intern/hair_volume.cpp b/source/blender/simulation/intern/hair_volume.cpp
index d954d9b5fff..4966fa2510d 100644
--- a/source/blender/simulation/intern/hair_volume.cpp
+++ b/source/blender/simulation/intern/hair_volume.cpp
@@ -200,7 +200,7 @@ BLI_INLINE void hair_grid_interpolate(const HairGridVert *grid,
}
if (velocity_gradient) {
- /* XXX TODO */
+ /* XXX TODO: */
zero_m3(velocity_gradient);
}
}
@@ -530,7 +530,7 @@ void SIM_hair_volume_add_segment(HairGrid *grid,
const int stride2 = strides[axis2];
/* increment of secondary directions per step in the primary direction
- * note: we always go in the positive direction along axis0, so the sign can be inverted
+ * NOTE: we always go in the positive direction along axis0, so the sign can be inverted
*/
const float inc1 = dir2[axis1] / dir2[axis0];
const float inc2 = dir2[axis2] / dir2[axis0];
@@ -800,7 +800,7 @@ bool SIM_hair_volume_solve_divergence(HairGrid *grid,
vert->density, target_density, target_strength);
/* B vector contains the finite difference approximation of the velocity divergence.
- * Note: according to the discretized Navier-Stokes equation the rhs vector
+ * NOTE: according to the discretized Navier-Stokes equation the rhs vector
* and resulting pressure gradient should be multiplied by the (inverse) density;
* however, this is already included in the weighting of hair velocities on the grid!
*/
diff --git a/source/blender/simulation/intern/implicit_blender.c b/source/blender/simulation/intern/implicit_blender.c
index 4c01fd3aee0..8aa3774a3f2 100644
--- a/source/blender/simulation/intern/implicit_blender.c
+++ b/source/blender/simulation/intern/implicit_blender.c
@@ -583,7 +583,7 @@ DO_INLINE void del_bfmatrix(fmatrix3x3 *matrix)
/* copy big matrix */
DO_INLINE void cp_bfmatrix(fmatrix3x3 *to, fmatrix3x3 *from)
{
- /* TODO bounds checking */
+ /* TODO: bounds checking. */
memcpy(to, from, sizeof(fmatrix3x3) * (from[0].vcount + from[0].scount));
}
@@ -697,7 +697,7 @@ Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings)
id->S = create_bfmatrix(numverts, 0);
id->Pinv = create_bfmatrix(numverts, numsprings);
id->P = create_bfmatrix(numverts, numsprings);
- id->bigI = create_bfmatrix(numverts, numsprings); /* TODO 0 springs */
+ id->bigI = create_bfmatrix(numverts, numsprings); /* TODO: 0 springs. */
id->M = create_bfmatrix(numverts, numsprings);
id->X = create_lfvector(numverts);
id->Xnew = create_lfvector(numverts);
@@ -2112,7 +2112,7 @@ BLI_INLINE void spring_hairbend_estimate_dfdx(Implicit_Data *data,
int q,
float dfdx[3][3])
{
- const float delta = 0.00001f; /* TODO find a good heuristic for this */
+ const float delta = 0.00001f; /* TODO: find a good heuristic for this. */
float dvec_null[3][3], dvec_pos[3][3], dvec_neg[3][3];
float f[3];
int a, b;
@@ -2123,7 +2123,7 @@ BLI_INLINE void spring_hairbend_estimate_dfdx(Implicit_Data *data,
copy_m3_m3(dvec_neg, dvec_pos);
negate_m3(dvec_neg);
- /* XXX TODO offset targets to account for position dependency */
+ /* XXX TODO: offset targets to account for position dependency. */
for (a = 0; a < 3; a++) {
spring_hairbend_forces(
@@ -2151,7 +2151,7 @@ BLI_INLINE void spring_hairbend_estimate_dfdv(Implicit_Data *data,
int q,
float dfdv[3][3])
{
- const float delta = 0.00001f; /* TODO find a good heuristic for this */
+ const float delta = 0.00001f; /* TODO: find a good heuristic for this. */
float dvec_null[3][3], dvec_pos[3][3], dvec_neg[3][3];
float f[3];
int a, b;
@@ -2162,7 +2162,7 @@ BLI_INLINE void spring_hairbend_estimate_dfdv(Implicit_Data *data,
copy_m3_m3(dvec_neg, dvec_pos);
negate_m3(dvec_neg);
- /* XXX TODO offset targets to account for position dependency */
+ /* XXX TODO: offset targets to account for position dependency. */
for (a = 0; a < 3; a++) {
spring_hairbend_forces(
diff --git a/source/blender/simulation/intern/implicit_eigen.cpp b/source/blender/simulation/intern/implicit_eigen.cpp
index 8eb227d38ab..aa9d5d1d34d 100644
--- a/source/blender/simulation/intern/implicit_eigen.cpp
+++ b/source/blender/simulation/intern/implicit_eigen.cpp
@@ -1223,7 +1223,7 @@ BLI_INLINE void spring_angbend_estimate_dfdx(Implicit_Data *data,
int q,
float dfdx[3][3])
{
- const float delta = 0.00001f; /* TODO find a good heuristic for this */
+ const float delta = 0.00001f; /* TODO: find a good heuristic for this. */
float dvec_null[3][3], dvec_pos[3][3], dvec_neg[3][3];
float f[3];
int a, b;
@@ -1234,7 +1234,7 @@ BLI_INLINE void spring_angbend_estimate_dfdx(Implicit_Data *data,
copy_m3_m3(dvec_neg, dvec_pos);
negate_m3(dvec_neg);
- /* XXX TODO offset targets to account for position dependency */
+ /* XXX TODO: offset targets to account for position dependency. */
for (a = 0; a < 3; a++) {
spring_angbend_forces(
@@ -1262,7 +1262,7 @@ BLI_INLINE void spring_angbend_estimate_dfdv(Implicit_Data *data,
int q,
float dfdv[3][3])
{
- const float delta = 0.00001f; /* TODO find a good heuristic for this */
+ const float delta = 0.00001f; /* TODO: find a good heuristic for this. */
float dvec_null[3][3], dvec_pos[3][3], dvec_neg[3][3];
float f[3];
int a, b;
@@ -1273,7 +1273,7 @@ BLI_INLINE void spring_angbend_estimate_dfdv(Implicit_Data *data,
copy_m3_m3(dvec_neg, dvec_pos);
negate_m3(dvec_neg);
- /* XXX TODO offset targets to account for position dependency */
+ /* XXX TODO: offset targets to account for position dependency. */
for (a = 0; a < 3; a++) {
spring_angbend_forces(