I've designed a circuit board using Kicad and would like to put a texture onto all unused copper areas, simply for aesthetics. So, instead of flooding the unused areas with a solid "copper pour" as usual I want to put a regular pattern on it.
In its newer versions (I'm using version 6) Kicad has the feature to import SVG files into a copper polygon as well as exporting copper planes as SVG files.
So in theory I should be able to use external software to process the SVG files to get the desired result. I just have trouble importing the result in Kicad. It seems its SVG importer isn't very sophisticated and only handles primitive graphics.
I have two SVG files, both exported from Kicad:
mask.svg- the outline of the "unused areas". This file can only be exported from Kicad as it's the result of a specific algorithm which uses strict electrical rules like clearance to traces etc. This file looks like this:
texture.svg- this file contains the regular pattern. It was also created in Kicad and in contrast to the first graphic consists of only lines (not polygons). It looks like this:
I want to subtract the
texture.svg from the
mask.svg so I get a result like this:
I achieved this by loading both files into Inkscape and after selecting both images I called
Object > Mask > set inverted mask.
I hope the translation is clear, I'm using the German version of Inkscape.
When I export the result as "plain SVG" and import it in Kicad, the imported graphic looks the same like the initial
I don't know much about the SVG file format, but I assume the resulting file consists of several objects according to the SVG standard which is just too complex for the rudimentary SVG importer that Kicad has.
I guess if I could get Inkscape to compile the result into a single polygon/object the issue would be solved.
Another thing I tried after searching on the internet was to use the
combine function on the SVGs, but that changed the thickness of the lines in
So, does anyone have an idea how I can subtract two SVG files in such a way that I get a simple enough output so the Kicad importer can understand it?