Blender Git Loki
Git Commits -> Revision b481e88
Revision b481e88 by Alexander Gavrilov (master) May 6, 2016, 08:40 (GMT) |
Cloth: Use Geometrical Mean for averaging cloth shrink factor. This comes out of considering a one-dimensional transition in weight on a rectangular cloth grid. At the transition face loop, one side of each rectangular face would be scaled by k1, and the opposite one by k2, thus turning the rectangle into a trapezoid. Averaging would be used to choose the scale factor for the remaining two sides. If Geometrical Mean, i.e. sqrt(k1*k2) is used, it so happens that the diagonals of the trapezoid also end up scaled by sqrt(k1*k2) compared to the original rectangle. This means that the same scale factor is correct for both structural and shear springs, which is not the case with simple average. |
Commit Details:
Full Hash: b481e886e5ad4c4ab6f1118f80933a4bf558c61e
Parent Commit: 8d22a8a
Lines Changed: +6, -1
1 Modified Path:
/source/blender/blenkernel/intern/cloth.c (+6, -1) (Diff)