← Back to team overview

kicad-developers team mailing list archive

Re: All kinds of glitches because polygons don't have an origin. Also: Outline ?

 

Henner,

Thank you for the message and your findings, I am sure they will be
useful for fixing the problem. I turned this into a bug report, so it is
not forgotten [1].

Cheers,
Orson

1. https://bugs.launchpad.net/kicad/+bug/1738032

On 11/21/2017 06:26 AM, Henner Zeller 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
> 


Attachment: signature.asc
Description: OpenPGP digital signature


References