Winding rule updates.
authorGareth Hughes <gareth@valinux.com>
Fri, 17 Sep 1999 06:31:02 +0000 (06:31 +0000)
committerGareth Hughes <gareth@valinux.com>
Fri, 17 Sep 1999 06:31:02 +0000 (06:31 +0000)
src/glu/mesa/tess.c
src/glu/mesa/tess.h

index de5a4f3cc61db55fe47dab2fe5ae38edf1d7f424..3619761930692c0c0c3e5478c42301cca8f4602a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tess.c,v 1.8 1999/09/17 03:07:28 tjump Exp $ */
+/* $Id: tess.c,v 1.9 1999/09/17 06:34:46 gareth Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -26,6 +26,9 @@
 
 /*
  * $Log: tess.c,v $
+ * Revision 1.9  1999/09/17 06:34:46  gareth
+ * Winding rule updates.
+ *
  * Revision 1.8  1999/09/17 03:07:28  tjump
  * Win32 build req't updates
  *
@@ -120,6 +123,7 @@ GLUtesselator* GLAPIENTRY gluNewTess( void )
 #if 0
     tobj->grid = NULL;
 #endif
+    tobj->cvc_lists = NULL;
 
     tobj->error = GLU_NO_ERROR;
 
@@ -265,6 +269,9 @@ void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3],
        last_vertex->coords[Y] = coords[Y];
        last_vertex->coords[Z] = coords[Z];
 
+       last_vertex->angle = 0.0;
+       last_vertex->label = 0;
+
        last_vertex->next = NULL;
        last_vertex->previous = NULL;
 
@@ -289,6 +296,9 @@ void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3],
        vertex->coords[Y] = coords[Y];
        vertex->coords[Z] = coords[Z];
 
+       vertex->angle = 0.0;
+       vertex->label = 0;
+
        vertex->next = NULL;
        vertex->previous = last_vertex;
 
index 3d159fcb890d62f5690bd1e71ead447a76cc6072..c9fb9129d095d35f8c59990979dd0852a9111929 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tess.h,v 1.7 1999/09/16 06:42:01 gareth Exp $ */
+/* $Id: tess.h,v 1.8 1999/09/17 06:31:02 gareth Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -26,6 +26,9 @@
 
 /*
  * $Log: tess.h,v $
+ * Revision 1.8  1999/09/17 06:31:02  gareth
+ * Winding rule updates.
+ *
  * Revision 1.7  1999/09/16 06:42:01  gareth
  * Misc winding rule bug fixes.
  *
@@ -55,6 +58,7 @@
 #include "gluP.h"
 
 #include "tess_typedefs.h"
+#include "tess_hash.h"
 #include "tess_heap.h"
 #if 0
 #include "tess_grid.h"
@@ -84,6 +88,7 @@ struct GLUtesselator
     tess_grid_t                *grid;                  /* Not currently used... */
 #endif
     heap_t             *ears;
+    hashtable_t                *cvc_lists;
     GLenum             error;
 };