kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31775
All kinds of glitches because polygons don't have an origin. Also: Outline ?
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
Follow ups