kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22562
Re: [RFC PATCH] Rounded rectangle pads
Hello, Mathias!
On 2016-01-12 21:29, Mathias Grimmberger wrote:
> Clemens Koller <cko@xxxxxxxxx> writes:
>> Can you rebase your patch, please?
>
> Please find attached a patch done against rev 6455, I hope I put it all
> together correctly, especially the DRC clearance stuff.
>
> I also added the plot code for Gerber output.
Thanks a lot. It applies nicely now!
First feedback: It would be great to make the corner radius variable
instead of fixing it to 25% of the shorter pad edge and <=0.25mm. [1]
This other tool I use allows to adjust the radius of the corners
for each pad. So Kicad would not be able to import a design without
cheating or tweaking these footprints.
My fp-generator starts currently with r_min=0.1mm for the tiny stuff
and then uses fixed increments of r_delta=0.05mm depending on the
shorter pad edge to avoid having many different apertures ending
up in the gerber output... But basically, any corner radius would
be allowed.
Greets,
Clemens
[1]:
-----8<-----
int D_PAD::GetRoundRectCornerRadius( wxSize size ) const
{
// radius of rounded corners, fixed 25% of shorter pad edge for now
int r = size.x > size.y ? (size.y >> 2) : (size.x >> 2);
// but not more than 0.25 mm
if ( r > 250000 ) r = 250000;
return r;
}
----->8-----
Follow ups
References