|
![](/i/fill.gif) |
On 16 Mar 2000 09:04:52 -0500, Nieminen Juha wrote:
>Ron Parker <ron### [at] povray org> wrote:
>: Get a copy of the source and read lathe.c, specifically the comments at the
>: top of the file and the Compute_Lathe function.
>
> Yes, it explains how to calculate the intersection of a ray with the lathe
>but it doesn't explain how to draw a quadratic spline curve.
You mean that's not what this part does?
* One spline segment in the (r,w)-plane is given by the equations
*
* fw(t) = Aw * t^3 + Bw * t^2 + Cw * t + Dw and
* fr(t) = Ar * t^3 + Br * t^2 + Cr * t + Dr,
*
* with the parameter t ranging from 0 to 1 and r = sqrt(u*u+v*v).
A, B, C, and D are calculated by the code in Compute_Lathe.
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |