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?

有帮助吗?

解决方案

Dissect Mesa's NURBS implementation.

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top