kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31949
Re: All kinds of glitches because polygons don't have an origin. Also: Outline ?
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Sat, 25 Nov 2017 10:01:54 -0500
-
In-reply-to:
<CAEQqtJyPG-S2fEALc0fc++=6WPTqhex3jbc114hSDJWZ6qvNBQ@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
I though Tom mentioned he had done some work on this but that may have
been some other board editing tool.
On 11/25/2017 08:28 AM, Henner Zeller wrote:
> Is someone working on this bug or should I have a stab at it ?
>
> On 20 November 2017 at 21:26, Henner Zeller <h.zeller@xxxxxxx> wrote:
>> Hi,
>> I am playing with polygons currently and notice that they only really
>> can be created, but not moved or copied.
>>
>> A move (m) creates a phantom polygon on the screen that is offset from
>> the polygon the same distance as the original polygon from the origin.
>> A similar glitch happens when attempting to copy a polygon.
>>
>> This indicates that the polygon does not really have a position that
>> is rooted in the e.g. top-left point, but that its Position is always
>> kept at (0,0).
>> This is confirmed when reading the board with the Python API and
>> printing GetPosition().
>>
>> The dialog for the polygon (edit dialog) also shows that all positions
>> Start (x,y) and End (x,y) are zero.
>>
>> I think the whole confusion comes because the original idea of a draw
>> segment has the concept of a line which has a clear start/endpoint. So
>> maybe some SetStart() needs to be done whenever a polygon is moved ?
>>
>> I wonder if the concept of Polygons and Zones can be merged: both of
>> them allow to fill an area in the layer and have the same editing
>> controls with the control points (and zones work).
>>
>> -h
>
> _______________________________________________
> 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