Dov! Thanks for this contribution. I'll ask my question first since I'm not sure if it's related to your code. It could just be how CadQuery works. I have a couple of comments specific to your code below.
Question:
I've used Dov's code to import an SVG with multiple paths and extrude them. I want to join them to a simple box. I have tried creating the box first and then extruding the SVG from a face. And extruding the SVG, creating a BoundBox, rectangle, and extruding it. Both result in the same error message.
I've attached the error message. The translate is to overlap the box and SVG. Dov code to convert the SVG Paths to Wires (?) works as expected.
Dov:
Your fish example is very simple. Having attempted this in the past, I've learned most SVGs are more complex since most of the time they're being created using some kind of program with a UI. While processing various SVGs
I kept getting an error. Turns out there are two points in the file that are the same. I ended up writing a small function that checks points to make sure they're not the same within a tolerance. See GIST:
https://gist.github.com/aguileraGit/d6013c66a5822a312056f737b85738f6
My other comment/request are other SVG elements that aren't paths. Any plans to add other non-paths SVG elements (circles, rectangles, maybe non-path lines)? Happy to contribute. I almost feel this could/should be it's own repo (plugin).