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.
Same settings, zoomed out:
Less visible at a thickness of 1:
Is this a bug? Is it a mistake on my side? Is there any way to fix this?
Gaps appearing strokes of certain thickness?
-
- Posts: 6
- Joined: Sat Oct 05, 2019 7:32 am
Re: Gaps appearing strokes of certain thickness?
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.
-
- Posts: 6
- Joined: Sat Oct 05, 2019 7:32 am
Re: Gaps appearing strokes of certain thickness?
I did use inkscape's trace bitmap to generate them, but the nodes appear to be fine.
well, here's the file:
well, here's the file:
Re: Gaps appearing strokes of certain thickness?
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.
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.
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.
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.
Your mind is what you think it is.
-
- Posts: 6
- Joined: Sat Oct 05, 2019 7:32 am
Re: Gaps appearing strokes of certain thickness?
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!