Hexagon grid on sphere without pentagon

前端 未结 2 1541
清酒与你
清酒与你 2021-02-20 07:10

I wanted to make a tile-based world on a sphere. I would like to use hexagon-shaped tiles, though as far as I can figure out you need to have pentagons in there too to make it f

相关标签:
2条回答
  • 2021-02-20 08:05

    Impossible. This is mathemetical theorem. Only imprecise ways exist I guess.

    http://en.wikipedia.org/wiki/Platonic_solid

    http://en.wikipedia.org/wiki/Semiregular_polyhedron

    Covering Earth with Hexagonal Map Tiles

    0 讨论(0)
  • 2021-02-20 08:06

    The author of this article was experiencing similar problems and wrote the aforementioned article on the subject, with some JavaScript source code.

    Basically, the idea is, that since it is mathematically impossible to remove the Pentagons, the only valid solution is to modify and distort your hexagonal grid to make the occasional pentagon stand out less. To make odd tiles the normal occurrence. He did this by creating a voronoi diagram over the icosphere rather than a straight hexagonal grid, and to repeatedly run the Lloyd relaxation algorithm over the points until they were more or less in the Pentagon to Octagon range.

    0 讨论(0)
提交回复
热议问题