gotcha

Author Topic: fill pattern to path  (Read 2990 times)

November 18, 2016, 04:35:07 AM
Read 2990 times

efeu

  • Newbie

  • Offline
  • *

  • 1
Hi,
I'm wondering if there is a way to convert a fill pattern (hatch) to path on the CLI? Right now I do a fill in the svg like this way:

<pattern id="diagonalHatch" patternUnits="userSpaceOnUse" width="4" height="4">
  <path d="M-1,1 l2,-2
           M0,4 l4,-4
           M3,5 l2,-2"
        style="stroke:black; stroke-width:1" />
</pattern>

and then a:

fill="url(#diagonalHatch)"

Then I convert the svg to pbm and back to svg. It's quick'n'dirty I know, but I didnt find out any other way. Must be usable on Linux cli.

Anyone can help?

Regards

November 18, 2016, 02:41:45 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
For this kind of hatches (vector paths instead of pattern), I'd use the extensions that are available for it (they work via commandline, but the execution of the command may require a graphical user interface), search for 'Eggbot hatch' or use the ones included in the Gcodetools. Or one could use the LPEs for hatches.