Convert curves to lines

Post questions on how to use or achieve an effect in Inkscape.
JonnyPants

Convert curves to lines

Postby JonnyPants » Sun Jan 24, 2010 2:31 pm

Hi!

I would like to know if there is any way to convert curves into a series of lines in inkscape. The reason for this is that I want to convert svg files to another type of file that only has straight lines, so I need to remove the curves. If there's no way to do this then I guess I've got a lot of tracing to do...

Thanks for reading this, I hope someone can help me. :)

User avatar
syllie
Posts: 48
Joined: Fri Jan 15, 2010 3:51 pm
Location: Sydney, Australia
Contact:

Re: Convert curves to lines

Postby syllie » Sun Jan 24, 2010 7:57 pm

Hi Jonny,

I am not really sure what effect you are after, but perhaps this will work:

Select your curve (path) with the Node Tool (2nd icon from the toolbox at the left side of the screen) :tool_node:
In the Node Tool - Tool control bar that appears at the top of the screen, you'll find "Make selected segments lines" (11th icon from the left side, looks like 2 nodes connected by a straight line).

- If you need seperate line segments you can also use the tools to break the path where desired, the icons and the tooltips help with that. After that you use "break apart" from the Path menu.
- If you need more accuracy (more but shorter line segments) you can select all nodes, and click the + symbol to add more nodes, and then follow the previous steps.

I hope this helps.

Cheers,
Syllie
Life is the art of drawing without an eraser. (John W. Gardner)

http://verysimpledesigns.com - graphics resources
http://syllie.com - personal website

JonnyPants

Re: Convert curves to lines

Postby JonnyPants » Mon Jan 25, 2010 8:03 am

That seems to be exactly what I need. Thanks for your help, syllie!

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Convert curves to lines

Postby ~suv » Tue Jan 26, 2010 4:00 am

You can also apply the extension specially created for this use case: 'Extensions > Modify Path > Flatten Bezier' which offers more control about the smoothness of the resulting path:
This extension converts selected Bezier curves to an approximation composed of straight-line paths. The number of line segments used is determined by the Flatness parameter. The smaller the Flatness, the more line segments are used.

JonnyPants

Re: Convert curves to lines

Postby JonnyPants » Tue Jan 26, 2010 10:05 am

Thanks, that should make it even simpler.


Return to “Help with using Inkscape”