Gaps appearing strokes of certain thickness?

Post questions on how to use or achieve an effect in Inkscape.
MaxRavenclaw
Posts: 6
Joined: Sat Oct 05, 2019 7:32 am

Gaps appearing strokes of certain thickness?

Postby MaxRavenclaw » Sat Oct 05, 2019 7:38 am

Hello. I'm getting these weird gaps in the strokes of objects at certain thicknesses. Zooming in and out changes the gaps a bit, but they do show up on export.

Image
Same settings, zoomed out:
Image

Less visible at a thickness of 1:
Image

Is this a bug? Is it a mistake on my side? Is there any way to fix this?

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Gaps appearing strokes of certain thickness?

Postby druban » Sat Oct 05, 2019 9:29 pm

that's odd! Could you post the file or link to it so I can look at it? I suspect these arrows are not made in Inkscape... If so object to path might fix it but I could tell you more if I can see the code
Your mind is what you think it is.

MaxRavenclaw
Posts: 6
Joined: Sat Oct 05, 2019 7:32 am

Re: Gaps appearing strokes of certain thickness?

Postby MaxRavenclaw » Sat Oct 05, 2019 11:29 pm

I did use inkscape's trace bitmap to generate them, but the nodes appear to be fine.

well, here's the file:
bow.svg
(39.14 KiB) Downloaded 51 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Gaps appearing strokes of certain thickness?

Postby druban » Sun Oct 06, 2019 11:32 am

Your miter limit is interacting with smooth/auto nodes in an unpredictable way. The solutions are to change all the segments to straight lines, change all the nodes to cusp, or hunt down the one or two nodes that are smooth but almost not, i.e. the node control handles are just barely sticking out, and change them to cusp. I used each method on each arrow. The first two fix all the problems but the arrow tip gets pointy. You can see there are still some calculation errors in the last one ...
The fix is easy and the reason is clear but it's probably a bug that should be fixed and may be known. Please note this is not really a problem with the geometry, but a problem in how accurately Inkscape renders geometry.

2019-10-05_035523.png
2019-10-05_035523.png (46.16 KiB) Viewed 1036 times


My best suggestion is to do it way old school and use a separate filled object for stroke and fill. That is duplicate each arrow remove the stroke from one and the fill from the other, and do stroke to path on the latter. Should work on these and if not then the problem will be static and easy to see.

20193.png
20193.png (16.28 KiB) Viewed 1034 times
Your mind is what you think it is.

MaxRavenclaw
Posts: 6
Joined: Sat Oct 05, 2019 7:32 am

Re: Gaps appearing strokes of certain thickness?

Postby MaxRavenclaw » Sun Oct 06, 2019 5:39 pm

I understand. Thank you very much for the explanation. I've learned so much in such a short time about this program, but I'll have to look at what the different types of nodes are. Thanks again!


Return to “Help with using Inkscape”