View Full Version : Mesa source code: where are the nurbs surface/curve evaluation function implemented?
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...
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.
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...?
11-04-2003, 06:13 PM
Only Bezier is supported.
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)
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.