Python geodesic domes with triangle how get 3d coordonate?

i want to generate a Geodesic Domes (sphere) with triangle, i use panda3d engine

but i have question, i search in python function for positionnate my all triangles in 3d world (x,y and z) and rotation for create the sphere. enter image description here

for rotation i use function setHpr(0,0,0) H for heading p for pitch r for roll

i search mathematical function for replace my 0 values :

class Triangle(GeometricObject):
    def __init__(self, x, y, z, h, p, r):
        self.x = x
        self.y = y
        self.z = z
        self.x = h
        self.y = p
        self.z = r  

for i in range(0,2000):
    mytriangle=Triangle(0, 0, 0, 0, 0, 0)

how change Triangle(0, 0, 0, 0, 0, 0) by real values ? thanks for advance

i want like this :

xyz coordinates and hpr rotation