← Back to team overview

kicad-developers team mailing list archive

Re: Pad SHAPE, SH_RECT vs SH_SIMPLE

 

Here are the debug of some cases that has 4 points SH_SIMPLE
(51849001, 11500000) (51849000, 12399999) (52798999, 12400000) (52799000, 11500001)
It looks the points are differ 1 unit

These looks to be some strange 1 unit pad:
(51849001, 13000000) (51849000, 13899999) (52798999, 13900000) (52799000, 13000001)
(54364001, 11247000) (54364000, 12096999) (55363999, 12097000) (55364000, 11247001)

Format is (X1, Y1) (X2, Y2) ...

not sure if its related but this was an old project that was converted/updated to the new format.

Mario

________________________________________
From: Seth Hillbrand <seth@xxxxxxxxxxxxx>
Sent: 07 September 2020 00:33
To: Mário Luzeiro
Cc: kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Kicad-developers] Pad SHAPE, SH_RECT vs SH_SIMPLE

That might happen if the shape cache is dirty.  You can call 'pad->IsDirty()' to check.

One related question: if you get the SH_SIMPLE and check the coordinates, do they form a rectangle with angle 0?

-Seth

On Sun, Sep 6, 2020 at 3:52 PM Mário Luzeiro <mrluzeiro@xxxxx<mailto:mrluzeiro@xxxxx>> wrote:
Hi all,

I noticed that (if I looked correctly) that there are some Pads, that are marked as Rectangles but its shape Type is set to be SH_SIMPLE (both angles are 0)
So I got some rectangles that are SH_RECT and other rectangles are SH_SIMPLE

Could some one clarify this differences and what originate it?

Mario
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


--
[KiCad Services Corporation Logo]
Seth Hillbrand
Lead Developer
+1-530-302-5483‬<tel:+12126039372>
Davis, CA
www.kipro-pcb.com<https://www.kipro-pcb.com/>    info@xxxxxxxxxxxxx<mailto:info@xxxxxxxxxxxxx>

Follow ups

References