# Given a number of vertices , a radius calculate vertices coordinates for regular polyhedron

I refered to Given a number of vertices , a radius, and rotation calculate vertices' coordinates for regular polygons, but this isn't what I am looking for since it is 2 dimensional and I need it for 3 dimensional.

How do you calculate all the coordinates of a regular polyhedron given the number of vertices and radius of the polyhedron in a 3 dimensional space.

• There aren't that many regular polyhedra, so unlike the case of polygons, there won't be some universal formula. Instead, you pretty-much just have to check a reference list. For instance, Wikipedia's "Regular Polyhedron" entry links to entries on specific figure; in those entries, you'll find descriptions of the various vertex coordinates. – Blue Nov 3 '16 at 15:08

This is not a well-defined question, as there is not necessarily a notion of "regular polyhedron". You might require that all faces are equivalent; or all edges are equivalent; or all vertices; or some combinations of these. These will give you sets of Platonic solids, Archimedean solids, Catalan solids, prisms, bipyramids, antiprisms, or trapezohedra, depending which conditions you impose. But in general, there is not necessarily any particularly symmetric polyhedron with a given number of vertices (or faces, or edges). The first 3 sets of solids above are highly symmetric and probably similar to what you want, but are finite in size, and highly irregular: you would need to hard-code every formula, essentially. The other 4 sets will generalize to arbitrary $n$ (or $2n$, or so) but will likely not have symmetries that you want. Their coordinates are given by very similar formulas to what you have for 2D.