PDA

View Full Version : Icosahedron without duplicated vertices



devdept
06-22-2010, 08:30 AM
Hi All,

I was wondering if somebody has and can share the icosahedron generation code of the OpenGL red book without adding duplicated vertices.

Thanks,

Alberto

sammie381
06-24-2010, 09:19 PM
I don't think there is a way.

You probably have to pre-calculate and pre-generate it, get rid of duplicate vertices, then save it to disk as a static C array. Then scale it to whatever radius you want. That's the fastest way to do it.

devdept
06-25-2010, 12:27 AM
Thanks.