0

Does anyone know or know how I might get the vertices for a 20 sided dice? I believe it is also known as a regular icosahedron. I believe they have 12 vertices. I don't mind the scale, although it would be nice if they were centered such that the center of the dice is the origin. I'm thinking of something like

{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},
{x,y,z},

I'm planning on rendering it with OpenGL. It doesn't have to include face data in triangle strip form, but that would be quite a bonus.

Also bonus question: does anyone know if the vertices are equal distance from the center? Meaning they can all be normalized to 1? I suspect they are. If so, a normalized format would be great, but not necessary...I'd be happy with whatever data I can get.

genpfault
  • 51,148
  • 11
  • 85
  • 139
SpecialEd
  • 473
  • 5
  • 17
  • Possible duplicate of [Faces missing when drawing icosahedron in OpenGL following code in redBook](https://stackoverflow.com/questions/43107006/faces-missing-when-drawing-icosahedron-in-opengl-following-code-in-redbook) – Spektre Jun 11 '18 at 07:38
  • 1
    here [SE/SO: Faces missing when drawing icosahedron in OpenGL following code in redBook](https://stackoverflow.com/a/43110844/2521214) is C++/OpenGL example – Spektre Jun 11 '18 at 07:39
  • Thanks, more than I asked for! – SpecialEd Jun 11 '18 at 23:06

1 Answers1

0

I can answer partially. Yes, they are all the same distance from the center. This is true of all platonic solids. The vertices are given here: https://en.m.wikipedia.org/wiki/Platonic_solid and https://en.m.wikipedia.org/wiki/Regular_icosahedron

Ori Almog
  • 59
  • 4
  • Useful info. I will say that Rabbits comment has a fairly complete listing though if anyone is looking for code – SpecialEd Jun 11 '18 at 23:08