Saving a copper zone settings affect outline smoothing on new non-copper zones

Bug #1833672 reported by Aleksandr Sh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Seth Hillbrand

Bug Description

If you change corner smoothing settings on a copper zone, then outlines of newly-created non-copper zones seem to use these settings and, if fillet was enabled, make the outlines bezier curves.
On the screenshot there are zones with same geometry, but one was created after saving copper zone with a fillet, and the other without corner smoothing.

Application: kicad
Version: (5.1.2)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

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

Tags: pcbnew
Revision history for this message
Aleksandr Sh (dsa-t) wrote :
Aleksandr Sh (dsa-t)
summary: - "Constrain outline to 45 deg" on non-copper zones makes bezier curves
- outlines for some reason
+ Saving a copper zone settings affect outline smoothing on new non-copper
+ zones
Aleksandr Sh (dsa-t)
description: updated
tags: added: pcbnew
Revision history for this message
Seth Hillbrand (sethh) wrote :

I am unable to recreate this.

Can you add a step-by-step instruction for how you created the image?

Application: Pcbnew
Version: (5.1.2-152-gf5284ced5), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-5-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 8.3.0 with C++ ABI 1013

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

Changed in kicad:
status: New → Incomplete
Revision history for this message
Aleksandr Sh (dsa-t) wrote :

1. Restart pcbnew
2. Draw a zone on F.mask. This look as the one on the right
3. Create a zone on a copper layer
4. Edit copper zone settings: Set corner smoothing to 1mm fillet, press OK.
5. Draw a zone on F.mask. This one should look like the one on the left.

Changed in kicad:
status: Incomplete → New
Revision history for this message
Seth Hillbrand (sethh) wrote :

I attempted to follow this procedure and the polygons that I generated look correct.

Would you be able to test the 5.1.3 nightly build from https://kicad-downloads.s3.cern.ch/index.html?prefix=windows/testing/5.1/ and see if the issue is resolved for you?

If not, please attach a video of your pcbnew screen while you generate the polygons. Perhaps I am using a different procedure.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Aleksandr Sh (dsa-t) wrote :

Happens in nightly too.

Application: Pcbnew
Version: (5.1.2-151-gc951ca6f4)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

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

Aleksandr Sh (dsa-t)
Changed in kicad:
status: Incomplete → New
Revision history for this message
Seth Hillbrand (sethh) wrote :

Thank you for the procedure. That helped!

Fixed in 463e0617403824404bf32147be627983b5c632d3

Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
milestone: none → 5.1.3
status: New → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
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.