Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: midfun on December 17, 2017, 07:29:24 AM

Title: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: midfun on December 17, 2017, 07:29:24 AM
Good day,

I recently decided to try to create a minimalistic logo in Inkscape, with only from triangles in my case. For this, I created an axonometric grid. Working in Inkscape was a little less convenient than in the usual AI, but everything was fine as long as I did not turn off the grid. It turned out that the shapes (triangles) are not ideally stick together, but have a small gap, as if the grid line had a real thickness. Then I tried to repeat this without a grid, but there is still a gap.

 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]

Maybe there is a magic settings to fix it? I'd tried to search it, but no result. There was one close issues (http://www.inkscapeforum.com/viewtopic.php?t=16453), but it seems TS choosed another program in the end.

Please, help.

.svg test files in the attachment.
Title: Re: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: brynn on December 17, 2017, 08:03:02 AM
Welcome to the forum!

Yes, the triangles are perfectly aligned one to another.   This is a known problem caused by anti-aliasing.  Many graphics programs have this problem.  Here are all the known solutions for Inkscape:  https://inkscape.org/en/learn/faq/#theres-seam-or-artifact-between-adjacent-objects-sharing-same-border-or-between-patterns  My favorite is the Stitch filter, but there are several others.
Title: Re: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: Lazur on December 17, 2017, 08:47:07 AM
Anti-aliasing and compositing together produce the tendering gap issue, here (https://computergraphics.stackexchange.com/questions/1824/what-is-illustrators-vector-rasterization-process/1825) is an explantion.

I prefer overlapping the shapes -filtering doesn't transfer to a full vector pdf, although it can (https://openclipart.org/detail/262016/compositing-test-with-filtering-2) produce a good rendering on opaque shapes.
Title: Re: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: midfun on December 17, 2017, 09:06:59 AM
Thank you for your helpful answer.
To be honest, this is the first time I've face to this kind of problem.

Actually, Stitch filter real works, but am I right that now I have to add a "Stitch file" to each project? Like an injection of the vaccine for this issue?
Union/Combine also works, it's OK to combine a shape after design.

Of course, I would like to see this problem never appeared at all — the "stitch filter" is not a reliable solution, 'cause it modifies the objects themselves, which can lead to unexpected problems in future. And Union/Combine can't be used at the design stage.
Title: Re: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: Lazur on December 18, 2017, 07:42:32 AM
I realised the problem a few years ago (http://www.inkscapeforum.com/viewtopic.php?f=9&t=13514#p52680).

Ever since, using overlapping -here (https://openclipart.org/collection/collection-detail/Lazur%20URH/10732) is a collection of images with an overlapping structure I've drawn. Sometimes it can get real tricky.
Title: Re: Shapes are not stick to each other seamlessly (a gap between shapes)
Post by: brynn on December 19, 2017, 02:34:19 PM
I probably should explain that I like to suggest the stitch filter, because it works under many different circumstance.  But overlapping the objects by a couple of pixels is probably the best solution.

Or the other thing you could easily do, given the simplicity of those particular artworks, is use the Pen/Bezier tool, perhaps with guidance from grid or guides, and snapping; draw a diamond shape as a whole, rather than make it out of 2 or several triangles.  In my opinion, that is the best solution, in this case.