GerbView: Corners are rounded when gerber exported to KiCad PCB
Description
When a layer is exported from GerbView to PCB Editor, the corners of pads are rounded. Expected behaviour is that the shapes in the exported file match the original gerber.
Original gerber:
Imported layer in PCB Editor:
Steps to reproduce
- Open a gerber file in GerbView (sharp_corners.gbr)
- Export it to kicad_pcb via File -> Export to PCB Editor...
- Open exported file in PCB Editor (pads_rounded.kicad_pcb)
KiCad Version
Application: KiCad Gerber Viewer x64 on x64
Version: (7.0.0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Feb 12 2023 01:35:19
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
I encounter the same behaviour in KiCad v5 and v6 as well.