From 3df50407a31cee771aeeaa566a2a9b0f66d86300 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Thu, 14 Oct 1999 07:44:41 +0000 Subject: Added point_contour_test, taken from O'Rourke 1998. --- src/glu/mesa/tess.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/glu/mesa/tess.c b/src/glu/mesa/tess.c index 4d34f2750d..48b7a6c4c6 100644 --- a/src/glu/mesa/tess.c +++ b/src/glu/mesa/tess.c @@ -1,4 +1,4 @@ -/* $Id: tess.c,v 1.17 1999/10/13 19:12:25 gareth Exp $ */ +/* $Id: tess.c,v 1.18 1999/10/14 07:44:41 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -186,21 +186,23 @@ void GLAPIENTRY gluTessBeginContour( GLUtesselator *tobj ) COPY_3V( tobj->current_contour->plane.normal, tobj->plane.normal ); tobj->current_contour->plane.dist = tobj->plane.dist; - tobj->current_contour->vertex_count = 0; - tobj->current_contour->vertices = - tobj->current_contour->last_vertex = NULL; - - tobj->current_contour->reflex_vertices = NULL; - tobj->current_contour->cross_vertices = hashtable_init( HT_DEFAULT_SIZE ); - - tobj->current_contour->orientation = GLU_UNKNOWN; tobj->current_contour->area = 0.0; + tobj->current_contour->orientation = GLU_UNKNOWN; tobj->current_contour->label = 0; + tobj->current_contour->winding = 0; + + tobj->current_contour->rotx = tobj->current_contour->roty = 0.0; + CLEAR_BBOX_2DV( tobj->current_contour->mins, tobj->current_contour->maxs ); - tobj->current_contour->rotx = tobj->current_contour->roty = 0.0; + tobj->current_contour->vertex_count = 0; + tobj->current_contour->vertices = + tobj->current_contour->last_vertex = NULL; + + tobj->current_contour->reflex_vertices = NULL; + tobj->current_contour->cross_vertices = hashtable_init( HT_DEFAULT_SIZE ); cleanup: DEBUGP( 15, ( " <- gluTessBeginContour( tobj:%p )\n", tobj ) ); -- cgit v1.2.3