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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-09-05 14:48:49 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:29:58 +0300
commit83137358c0507a50fea711017c3cee54585c42d5 (patch)
tree2edc2d3c0326292c9644ae5dda8870e859628dd8 /source/blender/blenkernel/intern/implicit.c
parent396f7ea1582b89fa33af4b4ff0a5562534316f7b (diff)
Alternative new solver for cloth using the Eigen CG solver instead of
a custom built solver. The old cloth solver is broken unfortunately. Eigen is a designated linear algebra library and very likely their implementation is a lot better (can't compare until it's implemented though). Only basic gravity is active atm, spring forces, external force fields, damping and volumetric friction have to be added back by converting the data into the Eigen format.
Diffstat (limited to 'source/blender/blenkernel/intern/implicit.c')
-rw-r--r--source/blender/blenkernel/intern/implicit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index 227bd2aef93..4081a600e26 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -29,6 +29,9 @@
* \ingroup bke
*/
+//#define IMPLICIT_SOLVER_BLENDER
+
+#ifdef IMPLICIT_SOLVER_BLENDER
#include "MEM_guardedalloc.h"
@@ -2283,3 +2286,5 @@ void implicit_set_positions(ClothModifierData *clmd)
if (G.debug_value > 0)
printf("implicit_set_positions\n");
}
+
+#endif /* IMPLICIT_SOLVER_BLENDER */