How to join these two sections?

Post questions on how to use or achieve an effect in Inkscape.
rwig
Posts: 9
Joined: Sun Feb 05, 2017 12:59 pm

How to join these two sections?

Postby rwig » Wed Feb 22, 2017 11:28 pm

I am making a cookie cutter. I added a thick handle around it by creating a linked offset (selecting my design > Path > Linked offset). But part of it is separate and I need these to be connected.

Image

I highlight the whole red part, and go Stroke to path > Union. Then I view the nodes. I then tried overlapping (cusp) nodes from both sections and selecting join nodes but that did not work.

Image

Image

Please advise me on how to combine these sections? (not just nodes from both sections connected, but to make a continuous thick red amount between both so that they are one).

Thank you in advance.

Ryan

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to join these two sections?

Postby theozh » Wed Feb 22, 2017 11:56 pm

Maybe there is somewhere a kind of "auto-close" function.
But I think a very simple way is to draw an ellipse or a rectangle or any object covering both of your "ends".
Then mark your path and the object and do Path | Union
Adjust the nodes as you like.
Done!
Win7/64, Inkscape 0.92.2

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to join these two sections?

Postby Xav » Thu Feb 23, 2017 12:20 am

The easiest approach is to drag the handles so that the areas overlap, as you have done in the last screenshot - but *then* use Path > Union again.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to join these two sections?

Postby theozh » Thu Feb 23, 2017 12:24 am

@Xav...what if the red ends are already the same path? Then the ends do not "melt" together in the way as I understand the OP.
Win7/64, Inkscape 0.92.2

rwig
Posts: 9
Joined: Sun Feb 05, 2017 12:59 pm

Re: How to join these two sections?

Postby rwig » Thu Feb 23, 2017 12:34 am

Thank you both for your suggestions! I went with Theoz's suggestion - to draw a circle/rectangle that covers both ends, and then highlight all > stroke to path > union. It works really well :D

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to join these two sections?

Postby Xav » Thu Feb 23, 2017 1:18 am

theozh wrote:@Xav...what if the red ends are already the same path? Then the ends do not "melt" together in the way as I understand the OP.


Have you tried it? It certainly works that way for me.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to join these two sections?

Postby Lazur » Thu Feb 23, 2017 1:32 am

Just a note to set the fill rule to non-zero from even-odd.

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to join these two sections?

Postby theozh » Thu Feb 23, 2017 1:46 am

@Xav, yes. In some cases I get results like you do, in some cases I get results like the attached example.
Left: original path
Middle: moved one point to overlap
Right: union path
Apparently, there are some settings how to display and combine paths. But I cannot remember where...

...@Lazur... that's it... thanks!
However, somewhat unforeseeable:
a) if you start with the free handline tool (F6) the default is: even/odd
b) if you start with a circle/rectangle the default is: non-zero
To me a bit strange, but there might be a reason for it?!

CombinePathWithItself.png
CombinePathWithItself.png (13.32 KiB) Viewed 1661 times
Last edited by theozh on Thu Feb 23, 2017 7:48 am, edited 1 time in total.
Win7/64, Inkscape 0.92.2

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to join these two sections?

Postby Xav » Thu Feb 23, 2017 2:07 am

The ability of Path > Union to "merge" a self-intersecting object does seem to be based on the Fill Rule value, which was a surprise to me. I always have it set to Non-zero (and never use the Freehand tool), in which case you *can* just drag a node and then press use Path > Union. Previously I always thought of the fill rule as being a purely visual thing, not something that would affect the outcome of a boolean operation.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to join these two sections?

Postby Moini » Thu Feb 23, 2017 3:33 am

Yes, I even accidentally once made a bug report about this... ;-)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: How to join these two sections?

Postby Xav » Thu Feb 23, 2017 3:44 am

I would argue that it is a bug - or at least a usability issue. Principle of least surprise, and all that.

The behaviour when the Fill Rule is Even-Odd is similar to using Path > Exclusion on a pair of paths. I think it would be better to extend Exclusion to also work on single self-intersecting objects. That way both modes of operation would be available, and the Fill Rule wouldn't have to come into it at all.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to join these two sections?

Postby brynn » Thu Feb 23, 2017 5:50 pm

I have to think you must be using a vector editor for some particular reason. And the truest vector solution for this, would be to make sure the black outline is a closed path. Then you can use a traditional fill, and not have to worry about patching different pieces together.

I would need to see the whole object, rather then just part of it, to explain how to do that. If you could either show a screenshot of the whole image, with the nodes for the black outline showing, or provide the SVG file, we can explain.

I don't know if you mean you're making an image of a cookie cutter, or you're planning to do a 3d print (which seems to be popular lately). But for the 3d print, you'll certainly need a closed path for the outline.


Return to “Help with using Inkscape”