Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Bugs in GLU polygon tessellation?

This topic is 5308 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anybody know if there are any bugs in glu tesselation? I am trying to draw non-convex polygons using the following code. For simple non-convex polygons it works, for more complex cases it does several errors: holes, missing covered area and in the most complex cases it doesn''t draw anything.
        gluTessCallback(tess_obj, GLU_TESS_BEGIN, (void (*) ())glBegin);
        gluTessCallback(tess_obj, GLU_TESS_VERTEX, (void (*) ())glVertex2fv);
        gluTessCallback(tess_obj, GLU_TESS_END, glEnd);

        gluTessBeginPolygon(tess_obj, NULL);
            for (i = point_list->begin(); i != point_list->end(); ++i)
                float *float_coord = (*i)->getCoord();
                coord[0] = (double)float_coord[0];coord[1] = (double)float_coord[1];coord[2] = (double)float_coord[2];
                gluTessVertex(tess_obj, coord, (*i)->getCoord());
I noted that on the same platform also FTGL (that in turn uses GLU!) has the same problem. I am using libGLU.so.1.3 on redhat 7.3 with geforce 4 MX.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!