← Back to team overview

kicad-developers team mailing list archive

Re: [RFC PATCH] Rounded rectangle pads

 

Hello, Mathias!

Thank you for your time spending on this.

>>> Clemens Koller <cko@xxxxxxxxx> writes:
>> 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]

> That can certainly be done.
> What do you think how it should work?

Well, you can keep your defaults as they are as an "automatic"
radius feature, which idea I really like:
[X] Adjust corner radius automatically to [p] percent where
p can be entered in a textbox. p=25% seems fine as a default.
And show the calcualted [r] radius i.e. in a greyed out
textbox for information.
If you uncheck the automatic option, you simply grey out the 
[p] percent and allow to fill in the desired [r] radius
with proper clipping of the value as necessary.

In the file format of the other tool, there are only
three parameters per layer: x-size, y-size, corner radius.
(The rotation of a pad in a footprint is not possible.
Reasonable automatic presets are non existent. :-( )


> I imagine the following:
> - optionally a radius can be given, <= 0 or not given means use default
> as above (I need to check how the file format handles optional values)

I would prefer to see what the default as well as what the current setting
is. 0 is 0 and not "default" which is 25% of the shorter pad dimension,
which calculates 2mm down to 0.5mm.

> - actual value used is clamped between 50% of shorter edge and some
> small value (a radius of 1 or 2 internal units might cause nasty
> numerical problems)

50% of shorter edge and some clipping in the small scale is fine.
You had 100nm there IIRC. But are the numerical problems caused
by a bug which should be fixed anyway?


> - in the pad properties dialog the input field is empty by default for
> new pads
> Would the possibility to alternatively give the radius as a percentage
> of the shorter edge be useful? It would complicate things a bit though.

Sorry, seems like I cannot follow you here. Which input field?

Regards,

Clemens


Follow ups

References