[Gridflow-cvs] [svn] commit: r6654 - /trunk/src/classes3.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Feb 20 20:06:08 EST 2011


Author: matju
Date: Sun Feb 20 20:06:08 2011
New Revision: 6654

Log:
implementing [#draw_polygon, rule winding]

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Sun Feb 20 20:06:08 2011
@@ -1124,7 +1124,7 @@
 						int xe = min(ld[i+1].x,xl);
 						k += ld[i].dir;
 						if (xs<xe) {
-							int q = abs(k);
+							int q = rule==RULE_WINDING ? k!=0 : abs(k);
 							while (xe-xs>=16) {for (int w=0; w<q; w++) op->zip(16*cn,data2+cn*xs,cd); xs+=16;}
 							for (int w=0; w<q; w++) op->zip((xe-xs)*cn,data2+cn*xs,cd);
 						}
@@ -1361,7 +1361,7 @@
 		cast = nt;
 	}
 	\decl n set   (int inlet, float f) {
-		if (inlet>=n) RAISE("what???");
+		if (inlet<0 && inlet>=n) RAISE("bug (looking for inlet %d)",inlet);
 		((float *)*a)[inlet] = f;
 	}
 	\decl n float (int inlet, float f) {_n_set(inlet,f); _0_bang();}



More information about the Gridflow-cvs mailing list