How can I fix the rendering of flush edges?

Post questions on how to use or achieve an effect in Inkscape.
expenses
Posts: 2
Joined: Tue Jun 16, 2015 7:37 pm

How can I fix the rendering of flush edges?

Postby expenses » Tue Jun 16, 2015 8:00 pm

I have been using blender's UV map export function recently, and it allows an easy way to export meshes as vectors. It exports each face as a separate path that is completely flush with the paths next to it (aka, the points of the bordering lines are the same). Unfortunately, as seen in the screenshot below, inkscape creates these ugly gaps between flush paths:
Image

The problem is fixed slightly by turning off anti-aliasing in the document properties, but only for some edges some of the time. When the paths are combined, the color merges seamlessly, oddly enough, but this isn't practical in this case as I want the different faces to be different colors.

I have attacked the svg file so you can look at it yourself.

Thanks in advance.
Attachments
cubes.svg
(6.29 KiB) Downloaded 248 times

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

Re: How can I fix the rendering of flush edges?

Postby brynn » Wed Jun 17, 2015 12:13 am

There's an FAQ item for this which covers all the options for this. Personally, my solution would probably be to add strokes to those paths (the same color as the fill).

I am a little surprised that turning off anti-aliasing doesn't fix it though. There must be something about that option that I don't understand. I don't see any difference, whether a-a is off or on, even zoomed to 26,000% (max). I wonder if there's some preference that has to be set a certain way, to make that a-a option work? Or maybe it only works on imported raster images, for some reason?

I also thought the new renderer in 0.91 was supposed to offer some improvement with that. I guess not so much, either way....??

Maybe if you could change the size of the panels, so that all sides (nodes, in this case) lie on even pixels values? That could at least help with the vertical edges. A little bit.

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

Re: How can I fix the rendering of flush edges?

Postby Espermaschine » Wed Jun 17, 2015 12:35 am

Lazur gave me the tip to put a clone on top, to get rid of the gaps.
Works for me.

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

Re: How can I fix the rendering of flush edges?

Postby Lazur » Wed Jun 17, 2015 12:56 am

That was suggested somewhere inkscape's website:
http://inkscapetutorials.org/2014/11/04/inkscape-workaround-to-fix-the-white-gaps-between-objects/

I'd rather not work that way though.
Would use some kind of overlapping, like in these:
1
2
3
4
5.

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

Re: How can I fix the rendering of flush edges?

Postby tylerdurden » Wed Jun 17, 2015 1:18 am

If you can live with a one pixel error, perhaps a 1px stroke on each?

If the map is going back to blender, perhaps scale 10x before exporting map, and scale -10x after wrapping image?
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/

expenses
Posts: 2
Joined: Tue Jun 16, 2015 7:37 pm

Re: How can I fix the rendering of flush edges?

Postby expenses » Thu Jun 18, 2015 11:09 am

expenses wrote:I have been using blender's UV map export function recently, and it allows an easy way to export meshes as vectors. It exports each face as a separate path that is completely flush with the paths next to it (aka, the points of the bordering lines are the same). Unfortunately, as seen in the screenshot below, inkscape creates these ugly gaps between flush paths.


Turns out the best way to remove these to to use this filter as linked to on the FAQ:

http://www.inkscapeforum.com/viewtopic.php?f=5&t=9034&p=33279&#p32882

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

Re: How can I fix the rendering of flush edges?

Postby Lazur » Thu Sep 03, 2015 12:34 pm

Another day, another search for anti-aliasing.
workaround for erroneous gaps in rendering


Return to “Help with using Inkscape”