planet/README.md

25 lines
1016 B
Markdown
Raw Normal View History

2019-02-09 23:40:04 +00:00
# Hexsphere Generator
Eventually, this will be a full-blown planet generator. But, for now, this is a
hexsphere generator. This shape is also known as a [Goldberg
polyhedron](https://en.wikipedia.org/wiki/Goldberg_polyhedron) or a [truncated
icosahedron](https://en.wikipedia.org/wiki/Truncated_icosahedron). It is made
2019-02-09 23:47:20 +00:00
from generating a [icosahedron](https://en.wikipedia.org/wiki/Icosahedron) whose
sides are split N times (for a detail level of N). Then, I calculate the [dual
polyhedron](https://en.wikipedia.org/wiki/Dual_polyhedron) of that shape, which
results in the hexsphere. In its smallest form (detail level of 0), it has 12
pentagon faces. As the detail level increases, it gains more hexagon faces and
becomes more spherical in shape.
2019-02-09 23:40:04 +00:00
2019-02-09 23:47:20 +00:00
Detail level 0 with 12 pentagons:
2019-02-09 23:40:04 +00:00
![detail 0](img/detail-0.png)
2019-02-09 23:47:20 +00:00
Detail level 1 with 12 pentagons and 30 hexagons (AKA. a soccer ball):
![detail 1](img/detail-1.png)
Detail level 8 with 12 pentagons and 655,350 hexagons:
2019-02-09 23:40:04 +00:00
![detail 8](img/detail-8.png)