PDA

View Full Version : Mesa source code: where are the nurbs surface/curve evaluation function implemented?



BigShooter
11-04-2003, 12:36 PM
I downloaded the Mesa source code. In opengl there is built in support for nurbs curves and surfaces. Where are those (file?) implemented in Mesa? I can't seem to find them...
Thank you,
Luke

dorbie
11-04-2003, 02:02 PM
OpenGL evaluators implement this functionality.

You need to trace what happens with a call to glEvalCoord*

glEnable(GL_MAP2_VERTEX_3) & variants are relevant.

glMap2* & variants are relevant.

Tracing the code behind these entry points should lead you to the bezier calculations in Mesa.

BigShooter
11-04-2003, 02:09 PM
dorbie, you say that this should lead me to bezier calculations in mesa... are b-splines and nurbs calculated with beizer functions? I thought these were different...?
Thanks,
Luke

dorbie
11-04-2003, 06:13 PM
Only Bezier is supported.

Mazy
11-05-2003, 06:22 AM
i think Nurbs are implemented in the GLU library, that should either comes with the mesa source, or you should be able to find an SGI implementation of it (that now is opensource)