POV-Ray : Newsgroups : povray.general : A little trig help : A little trig help Server Time
4 Aug 2024 14:28:47 EDT (-0400)
  A little trig help  
From: Alan Walkington
Date: 26 Apr 2003 00:37:57
Message: <3eaa0d25$1@news.povray.org>
Ok .. I want to distribute 'things' equaly spaced around a streched disk.

I can do it on the plain disk easily enough:
            #local R = 1.75;
            #local V =.4;
            #local Count = 0;
            #local Max = 4;

            #while (Count < Max)
                #local Theta = Count * (360/Max);
                #local X = -R * cos(radians(Theta));
                #local Z = -R * sin(radians(Theta));
                #local Count = Count + 1;

                sphere{<0,0,0>.15 translate <X,V,Z>}
            #end

but I really want an oval? .. elipse? .. created by stretching the disk:

cylinder {<0,0,0><0,.5,0> 2 scale <1.5,1,1>}

I can place the 'decorations' equally spaced by degrees on a plain disk, but
what I want is to place them equally spaced by distance on a stretched disk.

Any suggestions appreciated


Post a reply to this message

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