POV-Ray : Newsgroups : povray.advanced-users : Math help needed please. : Re: Math help needed please. Server Time
30 Jul 2024 20:20:45 EDT (-0400)
  Re: Math help needed please.  
From: Andrew Cocker
Date: 19 Apr 1999 20:25:13
Message: <371bbb59.0@news.povray.org>
Margus Ramst <mar### [at] peakeduee> wrote in message news:371bb1cb.0@news.povray.org...
>
> First, remember that the cirumference of an ellipse is not 2*pi*r. An
> approximation is 2*pi*sqrt[(a^2+b^2)/2] where a and b are lengths of major
> and minor axes.
>
> The other value you want - I haven't got right now. But why not just do
> this: use the Superpatch's trace() function; trace a line from the centre
> straight down. You can now get the radius for the current angle.
>
> Basically like this:
>
> #declare Ellipse=sphere{0,1 scale <.25,1,.25> rotate z*clock*360}
> #declare Rad=trace(Ellipse,0,-y).y;
>
> At least I think this should work.

Thanks Margus,

I was hoping to avoid using the superpatch....I'm not at all familiar with the trace
function. But I will give it a go and see how I get on.

Andy


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.