Laser Cut Inkscape Hatch Fill Extension

Author: @
License: GNU - GPL
File formats: svg
Download type: zip
Size:22.46 KB

The file 'Laser Cut Inkscape Hatch Fill Extension' is (svg) file type, size is 22.46 KB.

Summary

This Inkscape extension performs the classic hatch and crosshatch fill operations on selected closed objects and closed paths in an Inkscape drawing. Should nothing be selected, then every closed path and closed object in the document is hatch filled. The orientation and spacing of the hatch fill is user selectable as is whether or not to draw hatches or crosshatches.

The extension works by computing the points of intersection between a hatch or crosshatch grid with the selected closed objects or paths. An odd/even rule is then applied to determine which segments of the hatches or crosshatches to retain: for a given hatch line, its first intersection is considered to be the hatch line entering a closed figure, the second intersection it leaving, the third it entering another object (or section of an object), and so on. While this algorithm works well in most cases, one fault with it occurs when a hatch line intersects the corner of an object. In some circumstances this can appear to the an odd intersection and lead to stray, unwanted hatch lines. (And the manual workaround is to change the spacing of the hatch lines.)

Another drawback of this extension is that the fills it generates are not smooth, continuous tool paths. Rather the fills are many independent line segments, each segment requiring pen up and pen down operations in order to be drawn. While the fills may look pleasant on a computer display, they are not optimal for the task of plotting a color filled region with a pen plotter.

And, unlike Inkscape "Live Effects", the hatches generated by this extension do not change when the object of the hatching changes its shape. This is a limitation of the Inkscape extension mechanism.

Note that this extension was originally designed for use with the Eggbot. However, it works quite well for other applications. The default hatch spacing of 8 pixels, while appropriate to the Eggbot, may be slightly too wide for the Unicorn.

75mm_x_75mm_hatch_fill_demo.svg
hatch-fill-demo.svg