kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22660
Re: [RFC PATCH] Rounded rectangle pads
Hi, Mathias!
On 2016-01-14 20:06, Mathias Grimmberger wrote:
> In the current drawing code in some places we build polygons
> approximating the corner quarter circles, e.g. using 8 segments. For a
> very small radius there will be segments of zero length in that
> approximation.
Can you point me to some code where this is done?
Just want to see and understand it.
> I just fear that in some corner, maybe even an OpenGL lib or a graphics
> driver, this will lead to a problem. It can't be easily tested because
> there are so many versions of libs/drivers.
Zero length or otherwise broken elements generally shouldn't
leave Kicad. :-]
> The idea was to have only one input field for corner radius.
>
> Input "0.2" and it means 0.2 mm, input "20%" and it is taken as 20% of
> the shorter pad edge.
Ok, got it! Forget what I wrote above. That's a great idea! :-)
It seems to be more convenient and reduces the number of clicks
to get the data into the tool.
This reminds me on better CAD systems where you can do simple
+-*/ calculations in most input fields.
That would assist footprint creation generally.
Greets,
Clemens
Follow ups
References