Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Mesa source code: where are the nurbs surface/curve evaluation function implemented?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jul 2003
    Location
    London
    Posts
    163

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

    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

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Mesa source code: where are the nurbs surface/curve evaluation function implemented?

    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.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jul 2003
    Location
    London
    Posts
    163

    Re: Mesa source code: where are the nurbs surface/curve evaluation function implemented?

    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

  4. #4
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Mesa source code: where are the nurbs surface/curve evaluation function implemented?

    Only Bezier is supported.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: Mesa source code: where are the nurbs surface/curve evaluation function implemented?

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •