How can I make the output of "make selected segment lines" smoother?

Post questions on how to use or achieve an effect in Inkscape.
mondalaci
Posts: 3
Joined: Mon Feb 22, 2016 6:56 pm

How can I make the output of "make selected segment lines" smoother?

Postby mondalaci » Mon Feb 22, 2016 7:08 pm

Hi guys,

The attached drawing shows a zoom icon. I have decompose it to individual segments in order to hand it to an external tool that is not able to deal with complex paths. For that, I use the "make selected segment lines" node tool. Apparently, the output that I'm looking for is much more smoother than the result I got. How can I make it smoother?

Thanks!
- Laci
Attachments
zoom-icon.svg
(3.48 KiB) Downloaded 153 times
zoom-icon.png
zoom-icon.png (31.89 KiB) Viewed 1925 times

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby brynn » Mon Feb 22, 2016 8:02 pm

I'm afraid I don't understand which one do you want to be smoother?

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How can I make the output of "make selected segment lines" smoother?

Postby Espermaschine » Mon Feb 22, 2016 8:12 pm

I think this is about that a circle is really a polygon.

So i would use the polygon tool to construct the zoom icon.

EDIT: of course you can give your polygon more corners than i did.
Attachments
rect4146.png
rect4146.png (21.19 KiB) Viewed 1908 times

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How can I make the output of "make selected segment lines" smoother?

Postby Polygon » Mon Feb 22, 2016 8:15 pm

If you really want to go with this segments - you have to make sure to connect some endpoints before using the tools for smoothing out:

Image

Cheers
P.
Last edited by Polygon on Mon Feb 22, 2016 8:16 pm, edited 1 time in total.

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby Lazur » Mon Feb 22, 2016 8:16 pm

Hi.

Try this one:
zoom-icon2.svg
(135.26 KiB) Downloaded 171 times


Szép napot!

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: How can I make the output of "make selected segment lines" smoother?

Postby Espermaschine » Mon Feb 22, 2016 8:19 pm

Lazur URH wrote:Try this one:

Did you choose 360 corners on purpose ?

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby Lazur » Mon Feb 22, 2016 8:25 pm

Yes, wouldn't go any further in the number of nodes.
And also the diagonal tangent lines wouldn't look accurate if it had 180 corners.

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby brynn » Mon Feb 22, 2016 11:53 pm

Espermaschine wrote:
Lazur URH wrote:Try this one:

Did you choose 360 corners on purpose ?


Yep, that's Lazur's "go to" technique for making a circle. The difference is so negligable though, compared to a circle with Ellipse tool.

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby Lazur » Tue Feb 23, 2016 8:47 am

Mostly I use a dodecagon to represent a circle, convert it to path and set nodes smooth. 12 for its symbolic beauty, though if diagonal tangent nodes at 45°-s are necessary, a hexadecagon (16 nodes) can come more handy. 24 nodes seems too much for me for a "circular" Bézier.

Suv mentioned earlier on the live chat #inkscape that real circular arcs are part of the specs already.
The current renderer doesn't show them right though, only development builds. (Haven't really tested that myself.)
With real arcs the mentioned problem of the Bézier can be avoided.

But the original problem was a different case.

mondalaci
Posts: 3
Joined: Mon Feb 22, 2016 6:56 pm

Re: How can I make the output of "make selected segment lines" smoother?

Postby mondalaci » Thu Feb 25, 2016 2:56 am

Thank you very much everyone!

I think my question may have been misunderstood. Please let me clarify. I'd like convert any drawing (not just this one) to individual, smooth path segments. I need a universal way to do this without any manual labor.

I want to provide the final SVG to the dxf2svg2kicad utility which only deals with simple paths.

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

Re: How can I make the output of "make selected segment lines" smoother?

Postby Lazur » Thu Feb 25, 2016 4:18 am

Saving as dxf/plt has an option where curved segments are represented with small traight segments.

Another, brute-force workaround would be running the add nodes extension with a specified spacing and straightening the segments (it would result in many unnecessary nodes on the original straight parts).

mondalaci
Posts: 3
Joined: Mon Feb 22, 2016 6:56 pm

Re: How can I make the output of "make selected segment lines" smoother?

Postby mondalaci » Fri Feb 26, 2016 5:54 pm

You're the man, Lazur URH - the add nodes extension worked perfectly!

Köszönöm szépen! ;)


Return to “Help with using Inkscape”