[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: pads, mask and solder paste
On Tue, Feb 15, 2011 at 10:14 AM, DJ Delorie <dj@xxxxxxxxxxx> wrote:
>
>> Limiting the paste size to min(Mask, Thickness) seems like a good
>> idea, but can anyone think of a case where you'd actually want the
>
> Can you add a check for a fully tented pad? I.e. if mask==0, don't
> draw anything?
Sure.
--- a/src/draw.c
+++ b/src/draw.c
@@ -543,8 +543,13 @@ DrawEverything (BoxTypePtr drawn_area)
if ((TEST_FLAG (ONSOLDERFLAG, pad) && side == SOLDER_LAYER)
|| (!TEST_FLAG (ONSOLDERFLAG, pad)
&& side == COMPONENT_LAYER))
- if (!TEST_FLAG (NOPASTEFLAG, pad))
- DrawPadLowLevel (Output.fgGC, pad, false, false);
+ if (!TEST_FLAG (NOPASTEFLAG, pad) && pad->Mask > 0L)
+ {
+ if (pad->Mask < pad->Thickness)
+ DrawPadLowLevel (Output.fgGC, pad, true, true);
+ else
+ DrawPadLowLevel (Output.fgGC, pad, false, false);
+ }
}
ENDALL_LOOP;
}
I've given it a quick check, works fine for my current project (mixed
TH & SMD, some SMD with mask opening smaller than copper area for
sinking heat).
Any other feedback ? I'll let this sit for a day or so, if there are
no further corrections or suggestions I'll then log it on LP.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user