POV-Ray : Newsgroups : povray.general : piles of gold coins : Re: piles of gold coins Server Time
1 Aug 2024 14:29:17 EDT (-0400)
  Re: piles of gold coins  
From: Barehunter
Date: 4 Sep 2005 21:05:01
Message: <web.431b98c462b52bbd553c29380@news.povray.org>
I think I found a way to do it. I made a series of the following,
successvely narrowing the outer radius as it went up in increments of the
thickness of the coin.

#declare coincount =0;
#while(coincount < 50)

cylinder{<0,0,0>,<0,0,-0.125>,.4375
 texture{T_Gold_4E}
 translate<0,7,0>
 rotate<0,0,3.583322>
 rotate<0,0,-(coincount * 7.166644)>
 }
 #declare coincount = coincount +1;
#end

ending up with a single coin on top. then I threw a cone underneath it all
to catch the gaps.( heh this is my very first use of #while :)  )


Post a reply to this message

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