Hi to everyone, there is an extension or work-around that automatically remove
a lot of double lines? In my drawing it's impossible to remove manually every line. Thanks.
[SOLVED] How to remove double lines?
[SOLVED] How to remove double lines?
Last edited by d4rkheart on Wed Jun 08, 2011 5:00 am, edited 2 times in total.
Re: How to remove double lines?
It would be very very helpful if you could either attach a copy of your original file, or some simpler file that has the same problem. I simply have no idea if the "lines" are lines of text or lines drawn by some tool.
A brief explanation of how so many lines (text or drawn) made their way into the document would help.
Also, what version of Inkscape are you using?
A brief explanation of how so many lines (text or drawn) made their way into the document would help.
Also, what version of Inkscape are you using?
Last edited by BobSongs on Tue Jun 07, 2011 1:01 pm, edited 1 time in total.
Re: How to remove double lines?
Hi BobSongs, thanks for your answer. I'm using Inkscape 0.48.1 and i'm drawing a polygon
viewtopic.php?f=5&t=9519
with the effect "stitch subpaths" my polygon has double lines that i want to delete, is possible automatically?
viewtopic.php?f=5&t=9519
with the effect "stitch subpaths" my polygon has double lines that i want to delete, is possible automatically?
Re: How to remove double lines?
Bug #521988 in Inkscape: “Patch: Eliminate duplicate path segments” has an inkscape extension attached which seems to work reasonably well (apply once or twice on the path after converting the path effect to a regular path), at least with smaller test examples (6 and 10 corners).
If you need more instructions which files to download and how to install the extension, just ask (don't forget to provide info about or OS/platform).
Note though that the extension was not thoroughly tested on a wider range of cases, and IIRC was originally written with a narrow (specific?) task in mind (to help producing laser-cut parts).
If you need more instructions which files to download and how to install the extension, just ask (don't forget to provide info about or OS/platform).
Note though that the extension was not thoroughly tested on a wider range of cases, and IIRC was originally written with a narrow (specific?) task in mind (to help producing laser-cut parts).
Re: How to remove double lines?
@~suv, thanks. I'm using inkscape on windows vista. How can install this extension? I have downloaded the paths on this link: https://bugs.launchpad.net/inkscape/+bu ... dundant.py
Re: How to remove double lines?
You need to download these two files:To install the extension on Windows Vista:
- quit any running inkscape instance
- place both files into the user extensions folder Note: you can enter the string including the environment variable %APPDATA% as is into the address bar of the Explorer, if you don't know the location of the directory on your system.
Code: Select all
%APPDATA%\Inkscape\extensions
- restart inkscape: if all went well, you can find the new extension in the 'Extensions' menu:
Extensions > Modify Path… > Remove redundant edges
Re: How to remove double lines?
@~suv, Thanks. I'll try this extension.
Re: How to remove double lines?
i have uploaded an image of my polygon, realized with the effect "stictch sub-paths", there is a patch or a solution for this bug?
- Attachments
-
- bug.png (45.98 KiB) Viewed 15725 times
Re: How to remove double lines?
d4rkheart wrote:i have uploaded an image of my polygon, realized with the effect "stictch sub-paths", there is a patch or a solution for this bug?
You mean the rendering glitches on-canvas with paths which have a lot of nodes? Slightly change the zoom level, or the path width (or both). Those issues are known - they appear to depend on the zoom level and are influenced e.g. by the stroke width. If the same happens when exporting to PNG (File > Export Bitmap…), try varying the DPI value in the export dialog slightly (use 89 or 88 instead of the default 90). Hopefully the new renderer (on the roadmap for 0.49) will handle such paths better.
Re: How to remove double lines?
@~suv
"You mean the rendering glitches on-canvas with paths which have a lot of nodes?"
Yes, when I change the zoom level doesn't always solve the problem, and then I'm forced to change the lines' thickness. With png files i haven't problems.
I hope the 0.49 version solves these bugs.
For the extension "Remove redundant edges" i have selected my polygon, ctrl+k and after i have applied this extension, is correct?
"You mean the rendering glitches on-canvas with paths which have a lot of nodes?"
Yes, when I change the zoom level doesn't always solve the problem, and then I'm forced to change the lines' thickness. With png files i haven't problems.
I hope the 0.49 version solves these bugs.
For the extension "Remove redundant edges" i have selected my polygon, ctrl+k and after i have applied this extension, is correct?
Re: How to remove double lines?
d4rkheart wrote:For the extension "Remove redundant edges" i have selected my polygon, ctrl+k and after i have applied this extension, is correct?
Why ctrl+k? 'Path > Combine' has no effect on a single path (it combines multiple paths into one path i.e. each path of the selection is turned into a sub-path of the resulting combined path).
Steps:
- Draw the polgon with the Star/Polygon tool
- menu 'Path > Object to path' (Shift+Ctrl+C)
- Apply path effect 'Stitch Sub-Paths'
- adjust 'Number of Paths' to '2'
- Switch to the Node tool (F2), select all nodes (Ctrl+A) and break path at selected nodes (Shift+B)
- Switch back to the Select tool (F1)
- menu 'Path > Object to Path' (Shift+Ctrl+C)
- 'Extensions > Modify Path > Remove redundant edges' [1] [2]
[1] Possibly apply twice (check for duplicate lines in-between the same way how you detected they are duplicates in the first place)
[2] In my tests, when breaking the path apart with menu 'Path > Break Apart' (Shift+Ctrl+K) after having applied 'Remove redundant edges', it turns out that the extension creates a number of single-node path (segments) at the location of the polygon corners when removing redundant edges. I don't know why you need to remove the redundant lines, nor if having those single-node (sub-)paths around will interfere with whatever process you later apply to the created figure.
Re: How to remove double lines?
@~suv Thanks for your help, i read ctrl+k on this link https://launchpadlibrarian.net/39338070 ... tool-2.svg
but I didn't know that it combined multiple paths ;( I'm so Ignorant.
I want remove double lines because i can deform or remove some of my polygon's segments, without this extension i remove the first line and then can work with the second segment , i have problems with Polygons that have 10 or more angles.
Thank you so much for all your instructions
but I didn't know that it combined multiple paths ;( I'm so Ignorant.
I want remove double lines because i can deform or remove some of my polygon's segments, without this extension i remove the first line and then can work with the second segment , i have problems with Polygons that have 10 or more angles.
Thank you so much for all your instructions
- Attachments
-
- g3029.png (25.06 KiB) Viewed 15690 times