← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Rectangular pads with rounded corners

 

In response to a message written on 13.02.2015, 22:09, from Mathias Grimmberger:

Hi everbody,

below is a patch to add a first version of support for rectangular pads
with rounded corners to KiCad. The patch was created against revision
5414.

The radius of the rounded corners is fixed at 25% of the shorter pad
edge, but not larger than 0.25 mm. I'm not sure whether the radius needs
to be adjustable.


Nice idea!
Also, it will be nice to have rounded rectangular drills, defined as NPTH pads. The radius of the corner will be defined by tool diameter, as in round drill and some deltas as in trapezoid pad. What for? There are some components, mounted through the PCB cut window, in example SMD LED lightening to top, mounted on the bottom. In a Gerber file generation, composed of four oval drills, opposite to the tool rotation direction must be taken - some cheap milling tends to stray from the specified direction of cutting, if cutting direction is consistent with the direction of rotation of the tool.
To this day, I use a few extra bogus pads to define the cutting window.
Some example in attachment.
I'm tired of constantly skipping DRC rules check in this component.

--
Best Regards,
LordBlick

(module "FitDev Custom:LED-1206R" (layer F.Cu) (tedit 52EEA941)
  (descr "LED 1206 smd package")
  (tags "LED led 1206 SMD smd SMT smt smdled SMDLED smtled SMTLED")
  (attr smd)
  (fp_text reference LED-1206R (at 0 -1.3208) (layer F.SilkS)
    (effects (font (size 0.508 0.381) (thickness 0.0381)))
  )
  (fp_text value Val** (at 0 1.3208) (layer F.SilkS)
    (effects (font (size 0.508 0.381) (thickness 0.0381)))
  )
  (fp_line (start -0.09906 0.09906) (end 0.09906 0.09906) (layer F.SilkS) (width 0.06604))
  (fp_line (start 0.09906 0.09906) (end 0.09906 -0.09906) (layer F.SilkS) (width 0.06604))
  (fp_line (start -0.09906 -0.09906) (end 0.09906 -0.09906) (layer F.SilkS) (width 0.06604))
  (fp_line (start -0.09906 0.09906) (end -0.09906 -0.09906) (layer F.SilkS) (width 0.06604))
  (fp_line (start 0.89916 0.6985) (end 0.89916 -0.6985) (layer F.SilkS) (width 0.0508))
  (fp_line (start -0.89916 0.6985) (end -0.89916 -0.6985) (layer F.SilkS) (width 0.0508))
  (fp_line (start 1.5494 0.7493) (end -1.5494 0.7493) (layer F.SilkS) (width 0.1016))
  (fp_line (start -1.5494 0.7493) (end -1.5494 -0.7493) (layer F.SilkS) (width 0.1016))
  (fp_line (start -1.5494 -0.7493) (end 1.5494 -0.7493) (layer F.SilkS) (width 0.1016))
  (fp_line (start 1.5494 -0.7493) (end 1.5494 0.7493) (layer F.SilkS) (width 0.1016))
  (fp_circle (center 0 0) (end 0.54864 0.49784) (layer F.SilkS) (width 0.0508))
  (pad A smd rect (at -1.41986 0) (size 1.397 2.032) (layers F.Cu F.Paste F.Mask))
  (pad K smd rect (at 1.41986 0) (size 1.397 2.032) (layers F.Cu F.Paste F.Mask))
  (pad Z1 thru_hole rect (at 0 -0.35052) (size 0.635 0.254) (drill oval 2.6 1 (offset 0 -0.28448)) (layers *.Cu)
    (clearance 0.381))
  (pad Z2 thru_hole rect (at 0.8001 0) (size 0.127 0.254) (drill oval 1 1.7 (offset -0.4318 0)) (layers *.Cu)
    (clearance 0.381))
  (pad Z3 thru_hole rect (at 0 0.35052) (size 0.635 0.254) (drill oval 2.6 1 (offset 0 0.28448)) (layers *.Cu)
    (clearance 0.381))
  (pad Z4 thru_hole rect (at -0.8001 0) (size 0.127 0.254) (drill oval 1 1.7 (offset 0.4318 0)) (layers *.Cu)
    (clearance 0.381))
)

References