Mathematically producing sphere-shaped hexagonal grid
问题 I am trying to create a shape similar to this, hexagons with 12 pentagons, at an arbitrary size. (Image Source) The only thing is, I have absolutely no idea what kind of code would be needed to generate it! The goal is to be able to take a point in 3D space and convert it to a position coordinate on the grid, or vice versa and take a grid position and get the relevant vertices for drawing the mesh. I don't even know how one would store the grid positions for this. Does each "triagle section"