Missing Lines When Importing SVG Made In Inkscape

(Sailesh Kadam) #1

Hey all.

Still getting over the initial learning curves here, so bear with me as I ask some (hopefully simple) questions.

I have an SVG file made in Inkscape (uploaded below). When I import it into Carbide Create, some of the lines are missing! I read something about joining the lines, but I’m not really sure what that means. I guess I’m more curious to find out how Carbide Create interprets the SVG file and the vectors in it. That might give me some insight on how to get around this issue

Thank you!!


(William Adams) #2

The problem is the outlines (aside from the star and the bottle) aren’t closed. Carbide Create tends to discard beginning and ending nodes for such.

Version with closed paths:


(Sailesh Kadam) #3

Thank you so much for doing that! For my own understanding, what’s a good way of ensuring that all outlines are closed?

(William Adams) #4

Use a tool which allows you to join paths and find the ones which are open and address them.

(Nathaniel Klumb) #5

I searched around and found an Inkscape extension that lets you close any selected path(s) in one fell swoop. I made two quick UI updates to it (the dialog button is “Apply” not “ok”, and the other extensions use Title Case) and attached the extension as a ZIP file. To “install” it, you just have to extract the two files inside and put them in your Inkscape extensions directory, e.g. “C:\Program Files\Inkscape\share\extensions” for my Inkscape install on Windows.

Close_Curves.zip (1.4 KB)

(The ZIP contains two files: an Inkscape extension definition file, “close_curves.inx”, and the very brief python script, “close_curves.py”, with maybe a dozen lines of code to do the closing via a RegEx incantation or two.)

Once you’ve extracted the two files to your Inkscape extensions directory and (re)started Inkscape, you’ll have a new menu entry: “Extensions/Modify Path/Close Curves…” To use it, you select your curves (e.g. just Ctrl-A or “Edit/Select All”), then open the extension and click “Apply”. (Or open the extension, then select your curves, then hit apply. We’re flexible here.) The extension will close any selected paths as necessary (by adding the parameter, ‘Z’, that means “and back to the beginning” in SVG path-ese).

Note that this may give you ugly results for some paths, e.g. a curvy path with start and end nodes at opposite ends of your workspace. You can fix up the paths by hand or just note what they are, undo, and address them in whatever way seems logical. Once you have closed paths, you can do things like the path math options (e.g. Difference, etc.) to get nice non-overlapping fit-like-a-glove pieces. (Personally, I like to Copy and Paste In Place, then work on the copies. Makes it easy to try, try again if I do something… unhelpful.)