Mail Archives: geda-user/2014/07/06/05:07:06
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:
<snip>
>
> 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?
- Raw text -