POV-Ray : Newsgroups : povray.general : Unit cell of pavement pattern? : Re: Unit cell of pavement pattern? Server Time
25 Apr 2024 11:48:33 EDT (-0400)
  Re: Unit cell of pavement pattern?  
From: gregjohn
Date: 15 Aug 2019 08:35:01
Message: <web.5d5550e344ea73f4d6a533160@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 15/08/2019 à 12:15, Bald Eagle a écrit :
> >
> > Le_Forgeron <jgr### [at] freefr> wrote:
> >
> >> You will never find it, it's too obvious.
> >>
> >> The segment is 1 unit long.
> >
> > That looks OK in the x direction, but in z, it's all off kilter.
> > I tried to puzzle it out yesterday, even looking at patterns.cpp, and doing an
> > overlay grid exactly like you have here, and couldn't get it to line up.
> >
> >
>
> on the z, it's an hexagon whose center is at 0. so there is an offset of
> sqrt(3)/2  (0.866, sinus 60 degree) to find the next horizontal.
>
> the width on z is 1.732 (sqrt(3)), but 2 on x for a single hexagon.
>
> On the paving block, the x length is 3, but remains at sqrt(3) on z.
> (a paving block is a block you can repeat to pave a plane)

Yes, thanks, after much tinkering, I found that

scale foo/sqrt(3)

makes a hexagon of size foo.


Post a reply to this message

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