gotcha

Author Topic: Unwanted thin lines appearing between shapes  (Read 79 times)

September 05, 2019, 02:24:13 AM
Read 79 times

Maesh

  • Sr. Newbie

  • Offline
  • **

  • 3
Hello!
I've had this problem for a while, but now it really gets annoying...

When I create geometric shapes and snap  :snap: them together, to make sure they really are stuck together, a line appears between every different object, making it very annoying when adding a background (because the color shows through between objects...). It appears juste at different distances, and when I am very close up it doesn't appear.

I would like to know if there is a solution for that?
I joined a export of what it looks like, with the background showing through. Every objects are snapped together

 :ty1:
  • 0.92.2

September 05, 2019, 01:58:13 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,932
  • Gender
    Female

    Female
    • Inkscape Community
Interesting - I don't see the problem with your attachment.  However, I know what you're talking about.  The anomaly is known to appear and disappear at different zoom or scale levels.

What you're seeing is a known artifact related to anti-aliasing.  Anti-aliasing is the feature which allows Inkscape's lines to be so clean and sharp at every zoom or scale level.  Actually it's not limited to Inkscape.  You'll see this problem with almost all graphics programs.

The only real solution is to overlap the edges by a couple of pixels.  This faq item explains a few other options:  https://inkscape.org/learn/faq/#theres-seam-or-artifact-between-adjacent-objects-sharing-same-border-or-between-patterns
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 05, 2019, 11:58:25 PM
Reply #2

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,149
  • Gender
    Male

    Male
Hi.

As mentioned above, use overlapping. However I rather suggest an aproach where you handle each part of your drawing as pieces of paper you want to glue together.
Overlap the bottom pieces with an amount you can use for glueing, not just a few pixels.
As, there will be necessary sharp corners in the overlapped part and also it is recommended to still keep nodes in a somewhat neat layout.

Attaching a quick example.

corner.svg
*corner.svg
(3.27 kB . 300x300)
(viewed 25 times)




-Needless to say it gets tricky when you want to draw an impossible object that'd require a z-order loop of the objects displayed.
Drawn several examples on that before. Unfortunately they were hosted at openclipart and I have yet to sort out my works on my computer to dig up something related.