hash pattern fill

142 views
Skip to first unread message

Chris Uhlik

unread,
Feb 17, 2015, 8:50:35 PM2/17/15
to lase...@googlegroups.com
Does anyone know a trick to filling an area with a hash pattern of lines in inkscape?  I'm trying to "color in" a solid area.  I'd like to dump a hash-pattern-fill-paint into an area.  

Chris

Jondale Stratton

unread,
Feb 17, 2015, 9:10:11 PM2/17/15
to lase...@googlegroups.com
The eggbot extensions include a hatch fill extension that is very useful.  If you want something other than just lines or cross hatches maybe you can use the pattern along path extension to get your desired effect.

On Tue, Feb 17, 2015 at 8:50 PM, Chris Uhlik <chris...@gmail.com> wrote:
Does anyone know a trick to filling an area with a hash pattern of lines in inkscape?  I'm trying to "color in" a solid area.  I'd like to dump a hash-pattern-fill-paint into an area.  

Chris

--
You received this message because you are subscribed to the Google Groups "lasersaur" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lasersaur+...@googlegroups.com.
To post to this group, send email to lase...@googlegroups.com.
Visit this group at http://groups.google.com/group/lasersaur.
To view this discussion on the web visit https://groups.google.com/d/msgid/lasersaur/CAKMtkSnsSXbqEef0y%2B2R%2BtiCT%2BUwCMwoXX%3D%3Du_NnSN_DyH9hBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Steve Baker

unread,
Feb 17, 2015, 9:22:33 PM2/17/15
to lase...@googlegroups.com
In Inkscape, the low-tech approach is:

1) Make a short, wide rectangle - height equal to your hash-line
density...let's say 10 pixels many inches long.
2) Select it then hit Ctrl-D a bazillion times.
3) Select the bazillion copies of the rectangle.
4) Go to Align & Distribute menu, type 10.0 into the "Remove overlaps: V"
box.
5) Click the button to the right of that box.
6) Now you have a bunch of long thin rectangles...hit Path/Combine.
7) Save this as "HashPattern.svg".

...then...

8) Import that into any design you want to hash.
9) Rotate it and stretch it as needed to completely cover your shape.
10) Select the shape you want to fill.
11) Ctrl-D to duplicate it.
12) Shift-click to select the hash pattern.
13) Click "Path/Intersection".

The clipped ends of the rectangles remain in the design...you might think
this is a flaw - but it forces the lasersaur to go up one side and down
the other, which optimises rendering times.

They're easy enough to remove if they cause problems...go to Edit paths
(F2), click the hash pattern then shift-drag all of the vertices at one
end of the lines, then click on the "Delete segment between two
non-endpoint nodes" button.

If you want a square hash pattern, just duplicate the original parallel
rectangle thing, rotate 90, then Path-combine it and save it.

You can make all sorts of crazy hashing patterns - wavy lines, concentric
circles, etc. So long as they all make connected shapes, you can use the
same trick to clip them to the shape you're trying to hash.

-- Steve
> --
> You received this message because you are subscribed to the Google Groups
> "lasersaur" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lasersaur+...@googlegroups.com.
> To post to this group, send email to lase...@googlegroups.com.
> Visit this group at http://groups.google.com/group/lasersaur.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lasersaur/CAKMtkSnsSXbqEef0y%2B2R%2BtiCT%2BUwCMwoXX%3D%3Du_NnSN_DyH9hBg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- Steve

Reply all
Reply to author
Forward
0 new messages