pcbnew polygon tool draws polygon different than the preview

Bug #1780430 reported by Mark Roszko
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

See https://gfycat.com/MixedAdoredGonolek for a capture.

Basically, make 3 points of a rectangle, then for the fouth one, attmpt to put it lower. The suggested box looks ok because i do want to make the weird polygon. So the 4th click puts the 4th vertex where I want it. But the 5th click closes the rectangle instead of placing a 5th vertex like the preview implies it would.

Tags: pcbnew
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Mark,

Please state the KiCad version. I have an impression that it might be an old one, as the polygon preview in the current master uses different colors for the polygon area that has been already accepted and the proposed one.

Changed in kicad:
status: New → Incomplete
Revision history for this message
John Beard (john-j-beard) wrote :

I think this is caused by calling SetFinished on a POLYGON_GEOM_MANAGER doesn't add the leader points before completion.

The attached patch adds all but the first leader point to the polygon (the first point is the last locked point) before completing.

Video of completing a zone with outstanding leader points after the patch: https://imgur.com/a/0sXKEbu

tags: added: pcbnew
Revision history for this message
John Beard (john-j-beard) wrote :

I see this too on:

Application: pcbnew
Version: (5.0.0-rc3-dev-6-g101b68b61), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.60.0 OpenSSL/1.1.0h zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.31.1
Platform: Linux 4.17.2-1-ARCH x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.60.0
    Compiler: GCC 8.1.1 with C++ ABI 1012

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Mark Roszko (mark-roszko) wrote :

I stopped seeing it once I updated a bit (was running a older version due to testing)...Its no longer any angle snapping that it was doing before which eliminated the leader point issue....but I don't know if thats a setting or not.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.