Rounded corners on custom pad shapes

Bug #1777516 reported by Evan Shultz
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

Please see https://github.com/KiCad/kicad-footprints/issues/658.

IPC 7351C will be recommending rounded rectangle pads. (Apparently this was desirable from the first release of the document but ECAD software didn't commonly support this pad shape so oblong was the recommendation.) While we can use rounded corners with rectangular KiCad pads, custom pad shapes do not allow rounded corners.

This prevents all pads from having rounded corners and makes a choice between not adhering the IPC's latest recommendations or having pads both with and without rounded corners (if only custom pad shapes aren't rounded). The example given in the link above is for a QFN (currently Package_DFN_QFN:QFN-28_4x4mm_P0.5mm) with funky corner pads that are best represented with custom pad shapes.

The librarians would like to have rounded corners available on custom pads so that the benefits of rounded corners are available to all pads, and all pads in KiCad can be compliant with the best practices according the IPC 7351C.

description: updated
Revision history for this message
Andrzej Wolski (awolski) wrote :

Custom pad shapes can cave rounded corners, you just have to set polygon's outline thickness to a nonzero value.
Unfortunately, that thickness will be added to polygon's size, which makes creating precise pad shapes cumbersome.

Revision history for this message
Evan Shultz (evan-shultz) wrote :

Got it. Thank you!

While that does work, it's a much more difficult hurdle than being able to directly draw the outline with 0 width and apply a corner radius. And the radius cannot be easily changed later (essentially the custom shape must be redrawn).

While drawing this with a script would take out a lot of the challenge, and we are scripting more and more of the KiCad library, it would still be easier for both us librarians and users if custom shapes could have rounded corners applied directly so my wish still stands.

Revision history for this message
Seth Hillbrand (sethh) wrote :

This will require a file format change, so we can look at it during 6

Changed in kicad:
importance: Undecided → Wishlist
milestone: none → 6.0.0-rc1
status: New → Triaged
Revision history for this message
Rene Poeschl (poeschlr) wrote :

I don't think it really requires file format changes. Polygon pads can have a line width which will add a radius to it.
The only thing necessary would be an abstraction layer in the graphical interface that automatically moves the polygon points inwards by the required radius and assigns a line width of double the radius.

Revision history for this message
Seth Hillbrand (sethh) wrote :

I'm pretty sure that that solution will only round the convex corners. Is that the desired limitation for pads?

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Yes, I confirm it works only for convex polygons, and can modify the initial shape (I mean setting a radius to a given value and then to 0 does not give the initial shape in every case).

Revision history for this message
Seth Hillbrand (sethh) wrote :

@Rene- Do you know what the IPC recommendation is for non-rectangle pads? I don't have access to a copy of version C. Absent strong driver, I think it is safest to code this as a file format change for the pad but there may be a reason to facilitate the approach you suggest (with the convex limitation).

Do you (or anyone else) have thoughts/arguments for/against?

Revision history for this message
Evan Shultz (evan-shultz) wrote :

@Seth
IPC 7351C isn't released yet, but you can find some info at
http://www.ocipcdc.org/archive/What_is_New_in_IPC-7351C_03_11_2015.pdf (page 9+) and
https://www.ipc.org/committee/drafts/1-13_d_7351CGoals.pdf (last page).

KiCad has a limitation right now, so file format change or not it would be helpful to incorporate this feature. Perhaps waiting for 5.1 and making a robust and inclusive solution is best?

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Using a custom shape could be a temporary option.
However this is not a good solution.

Custom shapes are here to build complex shapes.
Therefore it is not possible to automatically create thermal reliefs for such shapes.

This can be annoying for SMD pads.

Revision history for this message
Rene Poeschl (poeschlr) wrote :

The main reason to use polygon pads for us right now is that some qfn footprints just need a chamfered pad at the corner pads. These are pads where the current workaround of using line thicknesses works.

Something like this footprint: https://github.com/KiCad/kicad-footprints/pull/834

Revision history for this message
Rene Poeschl (poeschlr) wrote :

I assume this mailing list conversation is a response to this: https://<email address hidden>/msg31906.html

Jeff Young (jeyjey)
summary: - Wishlist: Rounded corners on custom pad shapes
+ Rounded corners on custom pad shapes
Revision history for this message
Rene Poeschl (poeschlr) wrote :

The current implementation does not fix all we needed. I have documented requested improvements in: https://bugs.launchpad.net/kicad/+bug/1824614

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/2158

Changed in kicad:
status: Triaged → Expired
Changed in kicad:
importance: Wishlist → Unknown
status: Expired → New
Changed in kicad:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.