: Fill many small gaps in Inkscape I traced a bitmap and after some tweaks I have what you can see in the image below (it's a detail of the whole canvas). As you can see some small gaps
I traced a bitmap and after some tweaks I have what you can see in the image below (it's a detail of the whole canvas). As you can see some small gaps exist in the middle of the PCB traces. All the image is a single path.
Is there a way I can fill/delete all these small gaps automatically, while not affecting the middle of those big circles?
A sample in SVG format can be found here.
More posts by @Frith110
2 Comments
Sorted by latest first Latest Oldest Best
A rough way to elliminate only the scratches but not the holes is to superimpose 2 slightly offset versions of the whole path:
Select the path, duplicate it (Ctrl-D), offset the duplicate a couple of pixels down (or down and to the right if you have vertical scratches). Offseting the duplicate can be done with Alt + arrows.
Now select both the original and the duplicate, and do Path -> Union.
Your holes will shrink a bit, your traces will grow a couple of pixels, and maybe some part of a scratch remains, but most should be gone.
Your file contains a sigle path, where the tiny holes and spurious white scratches are path borders just like all others.
If you select your huge path and call Path -> Break Apart, you will end up with many simpler closed paths, where the holes and scratches will also appear as paths.
At this point, if you call Path -> Combine you will get back to the beginning, where one path inside another will appear as a hole. Don't to this.
Instead, with all the subpaths still selected, call Path -> Union. Voilá!
All overlapping holes and scratches will be merged with the bigger traces.
So the recipe is Break Apart and then Union.
Good luck cloning that PCB.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.