POV-Ray : Newsgroups : povray.binaries.images : Pavement conundrum : Re: Pavement conundrum Server Time
1 Aug 2024 10:11:40 EDT (-0400)
  Re: Pavement conundrum  
From: Tek
Date: 9 Sep 2008 15:44:15
Message: <48c6d20f@news.povray.org>
I had a bit of a play with a function to create this pattern. Obviously I'm 
cheating and not using rectangular blocks. Here's the code:

 #declare Wrap = function(a) { (a/2-floor(a/2))*2-1 }
 #declare Feeder = function(x,y) { Wrap( (y - 
sqrt(1-pow(Wrap(x*sqrt(2))/sqrt(2),2)))*8 ) }
 #declare Tiles =
  pigment { function {
   min(
   1-abs(Feeder(x,y))
   ,
   abs(Wrap(8.8*(-Feeder(x,y)*.1+.9)*Wrap(x*sqrt(2))))
   )
  } }


-- 
Tek
http://evilsuperbrain.com


"Thomas de Groot" <t.d### [at] internlDOTnet> wrote in message 
news:48c3964b@news.povray.org...
> Once in a while I try to solve this puzzle, but I give up. It is beyond my
> skills.
>
> How would one model this pavement in POV-Ray? It looks simpler than it is
> as - obviously - the inner arc of a row of stones is smaller than the 
> outer
> arc. In RL (as on the examples below) this is constantly compensated I
> suppose to keep the pattern regular and symmetrical....
>
> Thomas
>
>
>


Post a reply to this message


Attachments:
Download 'arctiles.jpg' (122 KB)

Preview of image 'arctiles.jpg'
arctiles.jpg


 

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