From: <adr...@us...> - 2011-05-19 11:25:27
|
Revision: 4134 http://reprap.svn.sourceforge.net/reprap/?rev=4134&view=rev Author: adrian-bowyer Date: 2011-05-19 11:25:21 +0000 (Thu, 19 May 2011) Log Message: ----------- Fixed bug where setting infill width negative didn't turn off infill. It should now do so. Modified Paths: -------------- trunk/software/host/src/org/reprap/geometry/polygons/BooleanGrid.java Modified: trunk/software/host/src/org/reprap/geometry/polygons/BooleanGrid.java =================================================================== --- trunk/software/host/src/org/reprap/geometry/polygons/BooleanGrid.java 2011-05-18 11:35:58 UTC (rev 4133) +++ trunk/software/host/src/org/reprap/geometry/polygons/BooleanGrid.java 2011-05-19 11:25:21 UTC (rev 4134) @@ -2481,8 +2481,11 @@ */ public RrPolygonList hatch(RrHalfPlane hp, double gap, Attributes a) //, Rr2Point startNearHere) { - push("Computing hatching... "); + //push("Computing hatching... "); + if(gap <= 0) // Means the user has turned infill off for this; return an empty list. + return new RrPolygonList(); + RrRectangle big = box().scale(1.1); double d = Math.sqrt(big.dSquared()); @@ -2565,7 +2568,7 @@ RrPolygonList result = snakes.realPolygons(a).simplify(realResolution); //result = result.nearEnds(startNearHere); - pop(); + //pop(); return result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |