Home › Evil Mad Scientist Forums › Egg-Bot › Hatching Inconsistency
Tagged: hatching bug
- This topic has 3 replies, 2 voices, and was last updated 2 years, 11 months ago by Windell Oskay.
-
AuthorPosts
-
November 12, 2021 at 11:34 pm #29588RogerParticipant
Hello I’ve been using the super nice hatching algorithm in Inkscape (thank you!). And I came upon an odd phenomenon where the spacing between lines will not be consistent depending on the angle. I ran into it several times and only recently tried to isolate it.
Please see the attached images and notice how only the angle changed:
https://ben.akrin.com/eggbot_hatching_bug_01.png
https://ben.akrin.com/eggbot_hatching_bug_02.pngI ran the same test on a new SVG with only a simple square shape, and it does not happen there. There is something to this file that produces this bug, I did run into it with several other files so please let me know if you need more examples.
Here in the file in question:
https://ben.akrin.com/grisou_head_only_3.svgI hope it’s a quick fix, please let me know if I can do anything to help resolve it.
November 12, 2021 at 11:49 pm #29600Windell OskayKeymasterI can reproduce the issue. It appears to be something with the document setup, that Hatch Fill is not handling correctly.
It’s easiest to reproduce by using the “crosshatch” option, as the perpendicular hatches are at different spacing.
If I copy the graphics to a new Inkscape document, Hatch Fill works correctly. If I copy a working object into that document, Hatch Fill has the same issue here.
I’d suggest trying our recommended AI SVG export/import path and see if that resolves it; I’m frankly surprised that Hatch Fill works at all on this documument.
November 13, 2021 at 7:17 pm #29601RogerParticipantWindell, thank you for your idea to copy it into a new document. I isolated it down to 1 shape on 2 documents, the original (which exhibits the bug) and the new document (which does not), I went through every attributes until I found the culprit.
It turns out that the
svg
element needs to have a height and width defined.How it interacts with the hatching working bizarrely at different angles is beyond me :).
Thank you again for the super nice hatching algorithm and your help here. I hope this finding ends up helping someone else.
Take care.
November 13, 2021 at 7:25 pm #29602Windell OskayKeymasterWe do have a “Process Illustrator SVG” extension, as part of the AxiDraw Utilities, that does specify a recommended export process for the document that includes using the Artboard — which I think may be the part that sets the SVG size.
In any case, the Hatch Fill extension isn’t handling some special case of SVG dimensions or viewbox.
-
AuthorPosts
- The topic ‘Hatching Inconsistency’ is closed to new replies.