This is an image of the type of geometry I'm looking to create.
I'm wanting to create an algorithm for a geodesic sphere like this. My thing is I need the faces of the hexagons & pentagons to be flat not spherical in nature like most algorithms I find. It would also be nice if the algorithm could find the next step so I can move up 'tesselations' for lack of a better word. Essentially have smaller hexagons & pentagons that approximate it.
Found a few ways to make some of the lower tesselations, but even on that would make one like the attached picture would be enough for my task. The faces need to be hard though for my project.
Here is a script to generate a regular icosahedron.
And then you can subdivide each triangle with this algorithm (C# with
Vector3
struct):It generates the new triangle faces with vertices in the same clockwise order. The vertices of the geodesic sphere are the centroids of the triangles. The centers of the pentagons and hexagons are the corners of the triangles.
You can improve the algorythm by creating a new class for the corners and checking if the
Vector3
of the corner has already been created. You can then collect the triangles joining a corner in the corner object. This approach makes the generation of the final faces easier.