support cutout for polygons
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
Currently, the polygon tool (as well as filled zones,...) only supports a single outline. When for example using the "bitmap to footprint" tool it tries to resemble the image as multiple outlines. This works well for generating polygons but is annoying if anyone wants to manually draw/edit polygons with cutouts.
In my library implementation, There is a simple algorithm to convert an outline with cuts into a single polygon. Such a thing could also be done in the KiCad internals:
https:/
# Current Version
Application: kicad
Version: (6.0.0-
Libraries:
wxWidgets 3.1.1
libcurl/7.61.0 OpenSSL/1.1.0h zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.32.0
Platform: Linux 4.17.11-arch1 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.1.1 (wchar_t,wx containers) GTK+ 2.24
Boost: 1.67.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.60.0
Compiler: Clang 6.0.1 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Changed in kicad: | |
importance: | Wishlist → Unknown |
status: | Expired → New |
Changed in kicad: | |
status: | New → Fix Released |
Zones support cutouts (holes).
And because polygons with holes cannot be drawn/plotted,
in Kicad code we frequently convert a polygon with holes to a polygon, and a polygon to a polygon with holes