POV-Ray : Newsgroups : povray.general : Hexagonal grid pattern? : Re: Hexagonal grid pattern? Server Time
5 Aug 2024 02:15:42 EDT (-0400)
  Re: Hexagonal grid pattern?  
From: Mike Williams
Date: 2 Jan 2003 20:38:50
Message: <ZFmBuAAFlOF+Ewq3@econym.demon.co.uk>
Wasn't it Jerry who wrote:
>I'd like to be able to make a hexagonal grid for use in making maps. 
>Making square grids for maps is easy enough with gradient x/gradient z, 
>but I can't figure out how to make a hexagonal grid. The hexagonal 
>pattern is not for grids but for solid hexagons.
>
>You can see an example of what hexagonal grids look like at:
>
>http://www.godsmonsters.com/Master/image003.gif
>
>Is there a way of making such a pattern? Perhaps using functions?
>
>Standard POV or MegaPOV are both fine. (I vaguely remember someone 
>making a few more shapes for patterns a while back, though I don't know 
>that hexagons were among them.)

Do you mean like this?

#include "functions.inc"

plane {y, 0
  pigment {
    function { f_hex_x(x,y,z,0)}
    colour_map {[0.83 rgb 1]
                [0.83 rgb 0]}
    rotate x*90
  }
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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