Use step-reduce logic for STEP export
Description
I was doing some STEP export test on last Nightly version due #5451 (closed) and remember of the @sethhillbrand comments on #2479 (comment 334720659) (plans for the v6 library).
I did some tests (using https://gitlab.com/sethhillbrand/stepreduce) and could reduce an exported Pcbnew STEP file size from 13.0MB to 7.3MB, the STPZ (.gz) gain was from 2.0MB to 1.3MB (related with #5440 (closed) statistics).
This is interesting to save space and decrease the time load on next software.
Propose
Include this approach on STEP export of Pcbnew.
This must be take into account for #4713 (closed) and #2358 (closed) improvements and, implemented before implement #5440 (closed).
KiCad Version
Application: Pcbnew
Version: 5.99.0-unknown-15c4a7b06~91~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
Platform: Linux 5.4.0-45-generic x86_64, 64 bit, Little endian, wxGTK
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCE: 6.9.1
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
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_SPICE=ON