- do_normal (p->points[f->points[0]].x,
- p->points[f->points[0]].y,
- p->points[f->points[0]].z,
- p->points[f->points[1]].x,
- p->points[f->points[1]].y,
- p->points[f->points[1]].z,
- p->points[f->points[2]].x,
- p->points[f->points[2]].y,
- p->points[f->points[2]].z);
-
- glBegin (wire ? GL_LINE_LOOP :
- f->npoints == 3 ? GL_TRIANGLES :
- f->npoints == 4 ? GL_QUADS :
- GL_POLYGON);
+ kludge_normal (f->npoints, f->points, p->points);
+
+ gluTessBeginPolygon (tobj, 0);
+ gluTessBeginContour (tobj);