Segment between 2 non consecutive points in a path

Post questions on how to use or achieve an effect in Inkscape.
Vicolaships
Posts: 2
Joined: Tue Feb 11, 2014 6:30 am

Segment between 2 non consecutive points in a path

Postby Vicolaships » Tue Feb 11, 2014 6:43 am

Hello,

Sorry for the title it is the best I've found; here is what I would like to do :

Image

I traced a simple path and I want to joint 2 non consecutive points with a segment (like the one in gray).I can't find a name/function to do this in inkscape because I don't know keywords for a good search.

How should I do that ? How would you do this in a clean way ? I would like the new segment to be attached to the points.

Thank you :)

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Segment between 2 non consecutive points in a path

Postby ragstian » Tue Feb 11, 2014 7:08 am

Hi

A node (point) can only have two lines not three, but you can draw a new line between the points (use snapping to points), you can then combine the paths by CTRL + K.

Good Luck.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

Vicolaships
Posts: 2
Joined: Tue Feb 11, 2014 6:30 am

Re: Segment between 2 non consecutive points in a path

Postby Vicolaships » Tue Feb 11, 2014 7:48 am

Thanks for the terminology !

After a little bit of reading I managed to snap to points and create the line. It works
See: https://www.youtube.com/watch?v=oCm-ozj ... 0&index=40
and : viewtopic.php?t=16429

But I don't really like it: If I select the single point and move it the other one will not follow. I have to draw a rectangular selection to select the 2 points.

The corner is not really nice : switching from miter join to round join solves this
Image

If you have alternatives or "better" solutions feel free to suggest :idea:

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

Re: Segment between 2 non consecutive points in a path

Postby Lazur » Tue Feb 11, 2014 8:40 am

Hi.

The snapping can work well; your example image's situation could be improved though.
The lines are going to one node from a less then 180° angle. If not the top and bottom left segments were going from the exact same node,
but the top and the bottom right, there wouldn't appear such spikes.
So the idea is to join only segments below, and closest to 180 degree if in miter stroke join, and set butt cap stroke style.


Return to “Help with using Inkscape”