Results 1 to 3 of 3

Thread: tesselation using glu

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2005
    Location
    belgium
    Posts
    9

    tesselation using glu

    I want to use glu tesselation for tesselating my concave poly's. I dont get the callback mechanism tough. Could someone show me how i get to the triangles after i have tesselated? Just a simple example?

    I used a GLdouble poly[5][3] to put my concave polygon in, then i tesselate:

    Code :
    GLUtesselator* tess = gluNewTess();
    gluTessBeginPolygon(tess, NULL);
     
    	gluTessBeginContour(tess);
    	for(int i=0; i<5; i++)
    		gluTessVertex(tess, poly[i], NULL);
    	gluTessEndContour(tess);
     
    gluTessEndPolygon(tess);
    // get triangles?
    gluDeleteTess(tess);
    which callbacks would be necessary and what do i do in them if i want to get to the triangles? i dont get how i could get the tesselation info if i have to code what happens in the callbacks myself.

    thanks for the advice,
    greets

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2001
    Posts
    145

    Re: tesselation using glu

    The FAQ is still a good place to look at:
    OpenGL FAQ

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2005
    Location
    belgium
    Posts
    9

    Re: tesselation using glu

    indeed it is, didnt think to look there.
    thanks mate!

Similar Threads

  1. Tesselation!!! help
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-16-2006, 01:35 PM
  2. Help with Tesselation
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-21-2004, 06:16 AM
  3. tesselation?
    By ravishashi in forum OpenGL: General
    Replies: 3
    Last Post: 05-27-2003, 06:43 AM
  4. glu Tesselation.
    By ravishashi in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-21-2003, 07:15 PM
  5. Mesh tesselation/de-tesselation
    By Punchey in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-18-2000, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean