POV-Ray : Newsgroups : povray.binaries.images : Pavement conundrum : Re: Pavement conundrum Server Time
1 Aug 2024 16:29:18 EDT (-0400)
  Re: Pavement conundrum  
From: Jim Charter
Date: 10 Sep 2008 08:40:26
Message: <48c7c03a$1@news.povray.org>
#include "shapes.inc"
#declare S=seed(0);

#local Scale = .375;
#local StartRing = 5;
#local NumberOfRings=10;
#local TileSize = .48*Scale; //set the space for grout


#local Ring=StartRing;

//circular grid
#while(Ring<NumberOfRings)

   //#debug #concat ("\n Lat ",str(Lat,0,0 ))
   #local Circum = 2*3.1416*Ring*Scale;
   #local NumberOfTiles = int(Circum/Scale);
   #local Remainder =  mod(Circum/Scale,1);
   #local Adj = 1+Remainder/NumberOfTiles;
   #local Offset=60*rand(S);

   #local Tile=1;#while(Tile<NumberOfTiles+1 )

     object {
       Round_Box_Merge (
         <-TileSize,0,0>,
         <TileSize,-.5,2*TileSize>,
         TileSize/20
       )
       translate  <0,0,Ring*Scale>
       rotate  y*(Offset+(360*(Tile*Adj)/(Circum/Scale)))
       pigment { rgb .5}
     }

   #local Tile=Tile+1;#end
#local Ring=Ring+1;#end


Post a reply to this message

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