Am 02.09.2008, 01:22 Uhr, schrieb Christopher Barker  
<[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] wrote:
>> Splines in floatcanvas use control points but for what i'm doing i
>> need to get spline points.
>
> FloatCanvas1 uses the spline implementation that is in wxDC, which I
> believe was borrowed from Xfig.
>
> In any case, no, you can't get the spline points (though I'm a bit
> confused about which is which.)

I am also unsure, but maybe the OP wants the code to do spline  
interpolation? In this case neither floatcanvas nor wxPython is going to  
help you. The "spline points" (I assume you are talking about the  
interpolated points between the control points) can be obtained by classic  
bezier interpolation. There are already many implementation of this on the  
web, for example this one

http://www.pygame.org/wiki/BezierCurve?parent=CookBook

-Matthias
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to