|
![](/i/fill.gif) |
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] caltel com
Post a reply to this message
|
![](/i/fill.gif) |