For my purposes, I think you're right about the natural cubic splines. Guaranteeing that an object passes through an exact point in space will be more immediately useful than trying to create rules governing where control points ought to be placed so that the object passes close enough to where I intended it to go. Thanks for the insight, I never would have found that on my own. At least not until Google labs comes out with a search engine that gives names for what you're thinking of. ;-)
I know this is a fairly pitiful request, since it just involves parsing your code, but I'm new enough to this that I'd benefit greatly from an couple of lines of example code, implementing your classes... how do I go from a set of coordinates to a Natural Cubic Spline, using your python code? Thanks for all the help, everybody! Warren "Tom Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 21 Nov 2005, Tom Anderson wrote: > >> On Sun, 20 Nov 2005, Warren Francis wrote: >> >>> Basically, I'd like to specify a curved path of an object through space. >>> 3D space would be wonderful, but I could jimmy-rig something if I could >>> just get 2D... Are bezier curves really what I want after all? >> >> No. You want a natural cubic spline: > > In a fit of code fury (a short fit - this is python, so it didn't take > long), i ported my old java code to python, and tidied it up a bit in the > process: > > http://urchin.earth.li/~twic/splines.py > > That gives you a natural cubic spline, plus my blended quadratic spline, > and a framework for implementing other kinds of splines. > > tom > > -- > Gin makes a man mean; let's booze up and riot! -- http://mail.python.org/mailman/listinfo/python-list