PDA

View Full Version : How can I translate the data from glNurbsObject into triangles?



BigShooter
11-04-2003, 01:52 AM
PLease disregards my previous message.
I'll try to make myslef clearer in this one.
Ok, is it possible to get the calculated point data (vertices) or even better: triangles, from the Opengl nurbs objects? For instance, lets say a program reads in control points for a surface. What I'd like to do is to specify sampling density and have the evaluator function or the nurbs object return me all the points (calculated) that it used to draw the surface. Or perhaps triangle list can be returned?

mikael_aronsson
11-04-2003, 03:24 AM
The OpenGL nurbs support is very limited, you only have the callback for error handling so it's not possible to access the generated data, but if you fetch the source code for the Mesa GLU library or the SGI sample OpenGL implementation you can get the source code for the code and play around with.