Creating an icosphere mesh in code

When you look at 3d modeling software like Blender , you will notice that there are usually two different sphere meshes available to choose ...