Commits

Jérôme Vuarand committed cd4e486

Fixed triangulation when negative contours extend past the positive ones.

  • Participants
  • Parent commits bad48ea

Comments (0)

Files changed (1)

 	lua_newtable(thread); // layer, combined
 	
 	tess = gluNewTess();
-	gluTessProperty(tess, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_NONZERO);
+	gluTessProperty(tess, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_POSITIVE);
 	gluTessCallback(tess, GLU_TESS_BEGIN_DATA,   triangulate_begin_cb);
 	gluTessCallback(tess, GLU_TESS_END_DATA,     triangulate_end_cb);
 	gluTessCallback(tess, GLU_TESS_VERTEX_DATA,  tess_vertex_cb);