From 63a801c21d054381d4eccd186dfea0d96533cfb3 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Tue, 21 Aug 2007 01:57:15 +0000 Subject: * Curve tilt interpolation types Just a quickie feature I needed here at work- the previous linear interpolation of tilt in curves can give nasty pinching problems when trying to do flowing curves like a ribbon. This commit lets you choose the interpolation type, between Linear, Cardinal, and BSpline. The code was already set up for it pretty easily, mainly needed to make the choice visible to the user. Example: http://mke3.net/blender/devel/etc/tilt_interp_types.png Works on selected curve 'lines', menu in 'curve tools' panel in edit mode. --- source/blender/blenkernel/intern/curve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 769c31ad8a9..ece0a7f1d6c 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -1445,7 +1445,7 @@ static void alfa_bezpart(BezTriple *prevbezt, BezTriple *bezt, Nurb *nu, float * for(a=0; atilt_interp); data_a[a]= t[0]*pprev->alfa + t[1]*prevbezt->alfa + t[2]*bezt->alfa + t[3]*next->alfa; } -- cgit v1.2.3