Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: In search of the perfect digital hexagon

by coreolyn (Parson)
on Aug 13, 2004 at 14:34 UTC ( [id://382687]=note: print w/replies, xml ) Need Help??


in reply to In search of the perfect digital hexagon

Thanks for the responses. I'll attempt to clarify.

All of the responses are relevant and have given me things to play with and research. What I keep trying to express in code is 3 dimensional space. Much like a 10 sided dice in D&D hexagons fill space perfectly. Additionally smaller hexes fill larger hexes perfectly. So what I'm looking to do is figure a coordinate system for defining what is in a space by getting code to scale space via hexagonal scaling. The crux of this is figuring the best algorithm for representing and storing a hex ( as japhy pointed out ) with 120 degree angles.

Update -> After finding the most efficient hex comes translating this type of 2D thinking into 3D. :)

  • Comment on Re: In search of the perfect digital hexagon

Replies are listed 'Best First'.
Re^2: In search of the perfect digital hexagon
by VSarkiss (Monsignor) on Aug 13, 2004 at 14:55 UTC

    It sounds like what you're looking for is regular solid tilings. There's actually a large body of data on the subject. Try googling for regular tiling, or take a look at some math reference sites.

      Ouch, but yeah.. thanks for the leads.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382687]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found