2010-11-27 20:44:32 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
2022-12-09 19:51:10 +00:00
|
|
|
<name>Hatch fill</name>
|
2019-06-19 17:29:46 +00:00
|
|
|
<id>command.evilmadscientist.eggbot_hatch</id>
|
2010-11-27 20:44:32 +00:00
|
|
|
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
|
|
|
|
<dependency type="executable" location="extensions">eggbot_hatch.py</dependency>
|
|
|
|
|
2012-06-29 03:36:07 +00:00
|
|
|
<param name="tab" type="notebook">
|
2022-12-09 19:51:10 +00:00
|
|
|
<page name="splash" gui-text="Hatch Fill">
|
|
|
|
|
|
|
|
<label>
|
2022-05-20 17:53:22 +00:00
|
|
|
An extension to fill all (or selected) closed figures in your
|
|
|
|
drawing with paths consisting of back-and-forth hatch lines.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label>
|
2010-11-27 20:44:32 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
<param name="hatchSpacing" type="float" min="0.001" max="1000" indent="2"
|
2022-12-09 19:51:10 +00:00
|
|
|
precision="3" gui-text="Hatch Spacing">3.0</param>
|
2010-11-27 20:44:32 +00:00
|
|
|
|
2022-12-09 19:51:10 +00:00
|
|
|
<param name="units" type="optiongroup" appearance="combo"
|
|
|
|
indent="4" gui-text="Spacing Units :">
|
|
|
|
<option value="2">px</option>
|
|
|
|
<option value="3">mm</option>
|
|
|
|
<option value="4">inch</option>
|
2022-05-20 17:53:22 +00:00
|
|
|
</param>
|
2019-06-19 17:29:46 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
<param name="hatchAngle" type="float" min="-360" max="360" indent="4"
|
2022-12-09 19:51:10 +00:00
|
|
|
gui-text="Hatch Angle (degrees)">45</param>
|
|
|
|
<param name="crossHatch" type="bool" indent="4" gui-text="Crosshatch">false</param>
|
2010-11-27 20:44:32 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
<separator />
|
2012-06-29 03:36:07 +00:00
|
|
|
|
2022-12-09 19:51:10 +00:00
|
|
|
<param name="connect_bool" type="bool" indent="2" gui-text="Connect Nearby Ends">true</param>
|
2022-05-20 17:53:22 +00:00
|
|
|
<param name="hatchScope" type="float" min="1.1" max="5.0" indent="2"
|
2022-12-09 19:51:10 +00:00
|
|
|
gui-text="Range of end connections (default: 3)">3.0</param>
|
2012-06-29 03:36:07 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
<separator />
|
2022-12-09 19:51:10 +00:00
|
|
|
<param name="inset_bool" type="bool" indent="2" gui-text="Inset Fill from Edges">true</param>
|
2022-05-20 17:53:22 +00:00
|
|
|
<param name="inset_dist" type="float" min="0.001" max="1000" precision="3" indent="2"
|
2022-12-09 19:51:10 +00:00
|
|
|
gui-text="Inset Distance, in selected units">0.5</param>
|
2016-03-18 06:46:01 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
<separator />
|
|
|
|
<param name="tolerance" type="float" min="0.1" max="100" indent="2"
|
2022-12-09 19:51:10 +00:00
|
|
|
gui-text="Tolerance (default: 2.0)">2.0</param>
|
2012-06-29 03:36:07 +00:00
|
|
|
|
2022-05-20 17:53:22 +00:00
|
|
|
</page>
|
2022-12-09 19:51:10 +00:00
|
|
|
<page name="info" gui-text="Help">
|
|
|
|
<label>
|
2022-05-20 17:53:22 +00:00
|
|
|
Hatch spacing is the distance between hatch lines, measured in selected units. Hatch angle is in
|
|
|
|
degrees from horizontal; e.g., 90 for vertical.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label><label>
|
2022-05-20 17:53:22 +00:00
|
|
|
The Crosshatch option will add a second set of hatches, perpendicular to the first.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label><label>
|
2022-05-20 17:53:22 +00:00
|
|
|
The Connect Nearby Ends option will join nearby line ends with a smooth curve, giving a different
|
|
|
|
appearance and reducing the number of pen lifts when using robotic tools like pen plotters. The
|
|
|
|
Range parameter sets the distance (in hatch spacing) over which end connections may be made. Large
|
|
|
|
values may result in hatches where you don't want them.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label><label>
|
2022-05-20 17:53:22 +00:00
|
|
|
The Inset Fill from Edges option allows you to hold back the hatches away from the edge of your
|
|
|
|
original object. This can allow you to more reliably "color inside the lines".
|
2022-12-09 19:51:10 +00:00
|
|
|
</label><label>
|
2022-05-20 17:53:22 +00:00
|
|
|
The Tolerance parameter affects how precisely the hatches try to fill the input paths.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label><label>
|
2022-05-20 17:53:22 +00:00
|
|
|
Hatches will have the same stroke color and width as the original object. When filling more than one
|
|
|
|
object, the hatches will be grouped with their original (filled) objects.
|
2022-12-09 19:51:10 +00:00
|
|
|
</label>
|
2022-05-20 17:53:22 +00:00
|
|
|
<separator />
|
2022-12-09 19:51:10 +00:00
|
|
|
<label indent="2">
|
|
|
|
v2.4.3. Copyright 2022, Evil Mad Scientist</label>
|
2019-06-19 17:29:46 +00:00
|
|
|
|
2012-06-29 03:36:07 +00:00
|
|
|
</page>
|
|
|
|
</param>
|
2016-01-08 17:45:51 +00:00
|
|
|
<effect needs-live-preview="true">
|
2010-11-27 20:44:32 +00:00
|
|
|
<object-type>all</object-type>
|
|
|
|
<effects-menu>
|
2022-12-09 19:51:10 +00:00
|
|
|
<submenu name="EggBot"/>
|
2010-11-27 20:44:32 +00:00
|
|
|
</effects-menu>
|
|
|
|
</effect>
|
|
|
|
<script>
|
2022-12-09 19:51:10 +00:00
|
|
|
<command location="extensions" interpreter="python">eggbot_hatch.py</command>
|
2010-11-27 20:44:32 +00:00
|
|
|
</script>
|
|
|
|
</inkscape-extension>
|