X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Sun, 06 Jul 2014 21:06:30 +1200 From: Lilith Bryant Subject: Re: [geda-user] pour clearing around pads To: geda-user AT delorie DOT com In-Reply-To: <53B90489.6030106@gmail.com> (from onetmt@gmail.com on Sun Jul 6 20:10:49 2014) X-Mailer: Balsa 2.5.1-79-g9697477 Message-Id: <1404637590.750.43@zotlet.(none)> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s6696ojX010655 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 2014-07-06 08:10:49 PM, onetmt wrote: > On 06/07/2014 06:41, Lilith Bryant wrote: > > On 2014-07-06 04:11:18 PM, Dave Curtis wrote: > > Also my fab used to complain about them; this is why now I carefully > draw by hand polygons, deleting them and reshamping them when sub-DRC > metals are created. > > > > > I have been meaning to write a polygon "bake" tool that fixes this, but > have > > been put off by the lack of a workable polygon library. Pretty much just > needs > > to erode then dilate by the minimum clearance. Was going to use > shapely/GEOS > > in python, but it's erosion doesn't seem to work :( So it went into the > too hard > > basket for the time being. > > > > Sorry to answer my own reply here, but I've just thought of a better way to do this. If the raw polygon is first built with clearances of (P+L) instead of just P.... (Where P=poly to line clearance, and L is the min line width) ... then that's the erosion step done right there, so would just need a dilation after that, and that can be handled by "union-ing" an L*2 width line around the perimeter(s) of the poly. Is this within the capabilities of the existing infrastructure?