POV-Ray : Newsgroups : povray.binaries.images : well [49.7kb] : Re: well [49.7kb] Server Time
15 Aug 2024 06:11:27 EDT (-0400)
  Re: well [49.7kb]  
From: Samuel Benge
Date: 25 Jul 2002 15:59:09
Message: <3D405884.80203@caltel.com>
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

-- 
Samuel Benge

sbe### [at] caltelcom


Post a reply to this message

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