Blender Git Commit Log

Git Commits -> Revision ee768ad

Revision ee768ad by Campbell Barton (master)
September 11, 2009, 15:35 (GMT)
curve twist
* added new twist method - "Tangent", suggested by Martin.
the nice thing about this is its stable no matter how you rotate the data, rotation is local to each segment.
* added smooth option that smooths the twisting (before applying user twist), to workaround Z-Up and Tangent's ugly curve twisting. Id prefer not to have this however it makes tangent much nicer. Possibly tangent can be improved some other way and this can be removed.
A smooth value of 1.0 will iterate over and smooth the twisting by the resolution value of the spline.
* Minimum-Twist method now corrects for cyclic twist by taking the roll difference between first and last, then increasingly counter rotate each segment over the entire curve. Previously it calculated from both directions and blended them.

details
* BevPoints use quats rather then 3x3 matrix.
* added BevPoint direction "dir" and tangent "tan" used only for 3D curves.
* don't calculate BevPoint->cosa, BevPoint->sina for 3D curves.
* split bevel tilt calculation into functions.
* nurbs curves currently don't generate tangents and wont work with tangent twist method.
* some of the use of quats should be optimized.
* smoothing is not animation safe, the higher the smoothing the higher the likelyhood of flipping.

Commit Details:

Full Hash: ee768ada680ce0a8aa184c882005c0ef1c0140fb
SVN Revision: 23129
Parent Commit: 042d3e5
Lines Changed: +480, -200

7 Modified Paths:

/release/ui/buttons_data_curve.py (+6, -2) (Diff)
/source/blender/blenkernel/BKE_utildefines.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/curve.c (+429, -178) (Diff)
/source/blender/blenkernel/intern/displist.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+11, -11) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+12, -4) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+20, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021