kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44494
Re: Pad SHAPE, SH_RECT vs SH_SIMPLE
-
To:
Jeff Young <jeff@xxxxxxxxx>
-
From:
Mário Luzeiro <mrluzeiro@xxxxx>
-
Date:
Mon, 7 Sep 2020 11:23:23 +0000
-
Accept-language:
en-GB, en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ua.pt; dmarc=pass action=none header.from=ua.pt; dkim=pass header.d=ua.pt; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J0LwamQ+RX/UT2gZfNyrV9JocAgvTPZNDI4GBhXuTPk=; b=cRQRz0SLLwCL16AHYLHC+Yx1xDxo5m6QnOcaEH0fHG2cAchI1O+IME0BObkznxr1yXUQKAuhQR+ZwePBB2bv4KvpF/32IlSB5KpAQg5okB4A4VTm6NJnmeu6u99SWgsllfuOTMXbWd0Jqt7Wi1vCqApHOwoM3m3F4NJ+TkpSxFSm/sOj1IS3Pi+Gsw8uwaLeyV2EJfDjk6wnTnkzSZ9L0uj8pHCggiXMGpZKyxRjzqnsyfNP5yoe587f/aX/Q/Ivmmz5GaYVIk1G+Ec4LQxnKLkHKukGelvnFOZ5g0WaBM+0Pesm+GOJgLaJtV6c//hJ5nfWEnXMRLBsszqg4SBkkA==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QTuziz3tP/8X76JCFm5Ta7fw6uvQoNDb494/Oue5AHFa6QrsTmxP76qCuJ41XwPu5xHp7LH3bkRppkwaTf/uYAaBu88R7t93R1sQdXjCqNaXQWIRTNce25DD+SD5B8NxRUITbQxLOScYtAjIwVkwQ3LVEkf6L8dLrM2q91zvYncenIigcCN/jgfywI4+6kt7OKBRfPrg6D+g9vBQi2gGj9Gg4bmN8OqGPd1ni68S+m/1v/hJfIgHGj5k+E0Nfu9xG7MW4vg/t8forgpnbQxaf8EPrT8uQY/qTEkbLQadakhnAjkHOOFq9055kjEZGzksSpoN7ZMW0mfPZR+96vinog==
-
Authentication-results:
rokeby.ie; dkim=none (message not signed) header.d=none;rokeby.ie; dmarc=none action=none header.from=ua.pt;
-
Cc:
"kicad-developers@xxxxxxxxxxxxxxxxxxx" <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<E6091AD8-EEB3-4043-AEC1-8D5A5ED3A38B@rokeby.ie>
-
Thread-index:
AQHWhJ+gbdPnleAk5kWjP/rCw5WO2alcQyKAgACGyx+AABRRgIAAKqkb
-
Thread-topic:
[Kicad-developers] Pad SHAPE, SH_RECT vs SH_SIMPLE
some are 0 (others 90 270 180 ) (using function aPad->GetOrientationDegrees() )
0,000000 (43630000, 13034000) (44530000, 13034000) (44530000, 12134000) (43630000, 12134000)
________________________________________
From: Jeff Young <jeff@xxxxxxxxx>
Sent: 07 September 2020 09:49
To: Mário Luzeiro
Cc: Seth Hillbrand; kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Kicad-developers] Pad SHAPE, SH_RECT vs SH_SIMPLE
Check the value of m_orient. It sounds like it’s not exactly 0. (Or 900, 1800 or 2700.)
> On 7 Sep 2020, at 08:41, Mário Luzeiro <mrluzeiro@xxxxx> wrote:
>
> 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>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References