geodesic sphere

Hi,

I load 3D models from .an8 files from Anim8or (a free modeler: http://www.anim8or.com)..)

In .an8 files, sphere are not stored as mehes (vertices, faces…) but as sphere ( diameter, div Lon, Div lat) or geodesic sphere (diameter, division).

In my loader, i have made a fonction to convert sphere to mesh, but i don’t know how to convert a geodesic sphere to a mesh.

How can i create vertices and faces of a geodesic sphere (with these info: diameter and division) ?

Thanks.