Question

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?

Était-ce utile?

La solution

Dissect Mesa's NURBS implementation.

Or use the (deprecated) GL feedback mechanism to slurp out the generated geometry.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top