Trying to make square cap lines with round join

Post questions on how to use or achieve an effect in Inkscape.
Yazilliclick
Posts: 2
Joined: Thu Feb 12, 2015 3:36 am

Trying to make square cap lines with round join

Postby Yazilliclick » Thu Feb 12, 2015 3:42 am

Hey,

I'm working on an image and right now I have it as follows:

Image

So a bunch of lines with square cap ends. The bottom left corner I want it to be curved/rounded. From searching I got the impression the best approach is to join those lines (Path -> Union is what I've done) but then with 'round join' set in stroke style I end up with rounded caps on the ends of lines (corner looks good though) like below.

Image

How should I go about achieving the effect? I can think of really time consuming ways (basically manually drawing curves) but I'm sure there has to be something easier. Thanks!

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Trying to make square cap lines with round join

Postby tylerdurden » Thu Feb 12, 2015 4:04 am

If you like the radius corner, convert object to path and square the ends, using guides for precision.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

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

Re: Trying to make square cap lines with round join

Postby Lazur » Thu Feb 12, 2015 4:15 am

Union would't take you there unless you converted strokes to paths before.

Combine paths (Ctrl+K), then merge double nodes at the bottom left corner with the node tool, and
set rounded join and preferably butt cap in the fill and stroke panel.

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

Re: Trying to make square cap lines with round join

Postby brynn » Thu Feb 12, 2015 1:21 pm

You can set the join and end caps separately. So you could make the left/bottom line have a round join (corner), but with butt or square end cap. Is that what you want?

Yazilliclick
Posts: 2
Joined: Thu Feb 12, 2015 3:36 am

Re: Trying to make square cap lines with round join

Postby Yazilliclick » Fri Feb 13, 2015 5:33 am

brynn wrote:You can set the join and end caps separately. So you could make the left/bottom line have a round join (corner), but with butt or square end cap. Is that what you want?


That's what I was expecting but my second image is with those settings (round join, square end cap) but for some reason it puts rounded ends on the lines as if it's considering them joint points or something (don't know, I'm pretty new to this).

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

Re: Trying to make square cap lines with round join

Postby Lazur » Fri Feb 13, 2015 6:17 am

Yazilliclick wrote:
brynn wrote:You can set the join and end caps separately. So you could make the left/bottom line have a round join (corner), but with butt or square end cap. Is that what you want?


That's what I was expecting but my second image is with those settings (round join, square end cap) but for some reason it puts rounded ends on the lines as if it's considering them joint points or something (don't know, I'm pretty new to this).



If you provide the svg it woud be all clearer.

Janne
Posts: 228
Joined: Wed Oct 29, 2014 4:15 am

Re: Trying to make square cap lines with round join

Postby Janne » Fri Feb 13, 2015 8:37 am

So each line has it's own properties and should be converted to paths before finished 'pattern' is made?

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

Re: Trying to make square cap lines with round join

Postby brynn » Fri Feb 13, 2015 4:35 pm

Yes, you could provide the SVG file, and we could have a look. But before you do that, just double-check your settings. I've tried on my local 0.91 and it does work as expected. When you select the path, be sure to look at the status bar, to make sure you have the right path selected. You may have some other paths there, and applied the stroke styles to them, instead of the path you meant.

Janne wrote:So each line has it's own properties and should be converted to paths before finished 'pattern' is made?


It depends on how you approach this problem. One solution would be stroke to path, and using node editing to change the ends. But imo, that's really the long way around, when we have these convenient stroke style options. There really is no need for stroke to path here, imo.


Return to “Help with using Inkscape”