summaryrefslogtreecommitdiff
path: root/src/glu
diff options
context:
space:
mode:
authorGareth Hughes <gareth@valinux.com>1999-10-14 07:44:41 +0000
committerGareth Hughes <gareth@valinux.com>1999-10-14 07:44:41 +0000
commit3df50407a31cee771aeeaa566a2a9b0f66d86300 (patch)
treee3089ac247a9ad471ca969406db8cbadac933d96 /src/glu
parent56a5f8820ff2b441174fc10982d8f9b4b59ab8d5 (diff)
Added point_contour_test, taken from O'Rourke 1998.
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/mesa/tess.c22
1 files 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 ) );