POV-Ray : Newsgroups : povray.binaries.images : well [49.7kb] : Re: well [49.7kb] Server Time
15 Aug 2024 06:16:23 EDT (-0400)
  Re: well [49.7kb]  
From: Philippe Lhoste
Date: 26 Jul 2002 11:43:07
Message: <3d416e0b$1@news.povray.org>
"Samuel Benge" <sbe### [at] caltelcom> wrote:
> marabou wrote:
>
> > on a
> > defined stone and a nearly given radius how many complete stones can be
> > positioned to fill a circle and how great is radius then? is there a
> > formular i can use?
>
>
> Hello Marabou. Here is some code for you. I tested and re-tested this
> code and it works great. Note, Radius must be a multiple of Scale. For
> example if Scale is 4, then Radius must be 4, 8, 12, 16, etc. Here is
> the code (I added a camera and light_source for convenience):
>
> camera{location<0,40,-40>
>   look_at 0
>   angle 35
> }
>
> light_source{
>   <2,1,-.5>*100000
>   ,<1.5 1.45 1.25>*1.7
> }
>
> #declare Scale=1;
> #declare Radius=10;
> #declare RotateV=0;
> #while(RotateV<360)
>   superellipsoid{<.2,.2>
>    pigment{rgb 1}
>    scale< Scale, Scale/2, Scale/2 >
>    translate z*Radius
>    rotate y*RotateV
>   }
>   #local RotateV = RotateV+360/Radius/3*Scale;
> #end

#declare Scale=3.2;

Same problem :-(

Regards.

-- #=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=# --
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/


Post a reply to this message

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