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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Aug 4 23:43:35 EDT 2010


Author: matju
Date: Wed Aug  4 23:43:35 2010
New Revision: 5963

Log:
ignore value of "omit" when "draw fill"

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Wed Aug  4 23:43:35 2010
@@ -919,8 +919,8 @@
 };
 void DrawPolygon::init_lines () {
 	if (!polygon) return;
-	int tnl = polygon->dim[0];
-	int nl = omit==OMIT_LAST ? tnl-1 : omit==OMIT_ODD ? (tnl+1)/2 : tnl;
+	int tnl = polygon->dim[0]; // total number of vertices
+	int nl = draw==DRAW_FILL ? tnl : omit==OMIT_LAST ? tnl-1 : omit==OMIT_ODD ? (tnl+1)/2 : tnl; // number of lines to draw
 	lines=new Grid(Dim(nl,8), int32_e);
 	Line *ld = (Line *)(int32 *)*lines;
 	int32 *pd = *polygon;
@@ -1022,11 +1022,8 @@
 		y++;
 	}
 } GRID_END
-
-
 GRID_INPUT(1,color) {} GRID_END
 GRID_INPUT(2,polygon) {init_lines();} GRID_END
-
 \end class {install("#draw_polygon",3,1); add_creator("@draw_polygon");}
 
 //****************************************************************



More information about the Gridflow-cvs mailing list