Reputation: 982
I am attempting to draw a shape by revolving a NURB around an axis to generate the points using OpenGL. I am able to render a NURB using gluNurbsCurve
, but I would like to find the interpolated points along the NURB to use in the rotation.
I have not been able to find a way to do this, what I have turned up is that the callback interface should expose what I am looking for but windows doesn't support that.
It seems that someone else has come up with a solution, but never posted it.
Is there a known workaround or a way to access the data structure directly to get the information out that I need?
Upvotes: 0
Views: 233
Reputation: 52083
Dissect Mesa's NURBS implementation.
Or use the (deprecated) GL feedback mechanism to slurp out the generated geometry.
Upvotes: 1