From: <adr...@us...> - 2011-01-12 23:20:32
|
Revision: 4000 http://reprap.svn.sourceforge.net/reprap/?rev=4000&view=rev Author: adrian-bowyer Date: 2011-01-12 23:20:26 +0000 (Wed, 12 Jan 2011) Log Message: ----------- Minor improvement to the start-polygons-in-solid code. Modified Paths: -------------- trunk/software/host/src/org/reprap/geometry/polygons/RrPolygonList.java Modified: trunk/software/host/src/org/reprap/geometry/polygons/RrPolygonList.java =================================================================== --- trunk/software/host/src/org/reprap/geometry/polygons/RrPolygonList.java 2011-01-12 11:34:30 UTC (rev 3999) +++ trunk/software/host/src/org/reprap/geometry/polygons/RrPolygonList.java 2011-01-12 23:20:26 UTC (rev 4000) @@ -957,6 +957,7 @@ Rr2Point start = outline.point(0); PolPoint pp = hatching.ppSearch(start, -1); + boolean failed = true; if(pp != null) { pp.findLongEnough(10, 30); @@ -1002,8 +1003,11 @@ set(i, outline); hatching.cutPolygon(pp.pIndex(), st, en); + failed = false; } } + if(failed) + set(i, outline.randomStart()); // Best we can do. } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |