Any royal road to Bezier curves...?
Robert Kern
robert.kern at gmail.com
Sun Nov 20 23:48:29 EST 2005
Warren Francis wrote:
> I'm fairly new to Python (2-3 months) and I'm trying to figure out a simple
> way to implement Bezier curves... So far I've tried the following:
>
> http://runten.tripod.com/NURBS/
> ...which won't work because the only compiled binaries are for Windows 2000,
> python 2.1. I'm on Windows XP (for now), using Python 2.4. I downloaded
> the source distribution, but the header files aren't included, so I'm not
> sure how to compile it.
>
> It appears there's some bezier functionality in the python that comes
> Blender... but I'm not savvy enough yet to try and extract whatever makes
> beziers work there, to make it work in my general-purpose Python programs.
>
> 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...
There's some 2D code (which could be trivially adapted to 3D) in
PIDDLE/Sping. In the latest Sping download, look in the file pid.py at
the Canvas.curvePoints() method.
http://piddle.sourceforge.net/
> Are bezier curves really what I want after all?
I dunno. It depends on how much flexibility you need.
--
Robert Kern
robert.kern at gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list