PDA

View Full Version : Getting vertices out of glut-objects ?



edotorpedo
09-26-2000, 08:38 AM
Does anybody know how to retrieve vertices out of glut-geometry-objects (for example the famous glutSolidTeapot) . Is it possible at all ?

Thanks,

Edo

mcraighead
09-26-2000, 09:07 AM
Originally posted by edotorpedo:
Does anybody know how to retrieve vertices out of glut-geometry-objects (for example the famous glutSolidTeapot) . Is it possible at all ?

Thanks,

Edo

Yes, you can use OpenGL feedback to do this.

Alternately, you can download the GLUT source code. The teapot uses evaluators, unfortunately.

- Matt