Moved the cloth solver code into a new subfolder/library inside Blender
authorLukas Tönne <lukas.toenne@gmail.com>
Sat, 13 Sep 2014 12:36:46 +0000 (14:36 +0200)
committerLukas Tönne <lukas.toenne@gmail.com>
Tue, 20 Jan 2015 08:30:00 +0000 (09:30 +0100)
commit5322def57cdbb81d38c5ba8e8e617c697791d22b
tree9f3b042615975de2cc076dae9f6f2c8e9fc24f08
parent1c8a33ab92ce8935165be29d2fc93e459c191286
Moved the cloth solver code into a new subfolder/library inside Blender
code.

The implicit solver itself should remain agnostic to the specifics of
the Blender data (cloth vs. hair). This way we could avoid the bloated
data conversion chain from particles/hair to derived mesh to cloth
modifier to implicit solver data and back. Every step in this chain adds
overhead as well as rounding errors and a possibility for bugs, not to
speak of making the code horribly complicated.

The new subfolder is named "physics" since it should be the start of a
somewhat "unified" physics systems combining all the various solvers in
the same place and managing things like synchronized time steps.
13 files changed:
build_files/cmake/macros.cmake
source/blender/CMakeLists.txt
source/blender/blenkernel/BKE_cloth.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/intern/cloth.c
source/blender/physics/BPH_mass_spring.h [new file with mode: 0644]
source/blender/physics/CMakeLists.txt [new file with mode: 0644]
source/blender/physics/intern/BPH_mass_spring.cpp [new file with mode: 0644]
source/blender/physics/intern/ConstrainedConjugateGradient.h [moved from source/blender/blenkernel/intern/ConstrainedConjugateGradient.h with 100% similarity]
source/blender/physics/intern/implicit.h [moved from source/blender/blenkernel/intern/implicit.h with 95% similarity]
source/blender/physics/intern/implicit_blender.c [moved from source/blender/blenkernel/intern/implicit.c with 99% similarity]
source/blender/physics/intern/implicit_eigen.cpp [moved from source/blender/blenkernel/intern/implicit_eigen.cpp with 99% similarity]
source/blender/render/intern/source/voxeldata.c