Editing Creating filled regions

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 19: Line 19:
  
 
One final word before we get started: Plots where you fill solid regions can potentially take a long time with all that back-and-forth business.  Where possible, design around having to fill regions.
 
One final word before we get started: Plots where you fill solid regions can potentially take a long time with all that back-and-forth business.  Where possible, design around having to fill regions.
 
 
= Eggbot Hatch Fill extension =
 
 
The Eggbot [[Hatch fill]] extension is a newer method of creating filled regions.  This extension creates a series of lines or cross hatches that can fill even complex shapes.  The lines are not connected, so it is not as efficient as the Hatches (rough) method below, but it does work in more circumstances.  See the [[Hatch fill|Hatch Fill documentation]] for more information.
 
 
  
  
Line 31: Line 25:
 
These two fill methods can be used to fill closed shapes with pen paths.   
 
These two fill methods can be used to fill closed shapes with pen paths.   
  
== Hatch Path Effect Method ==
+
== Hatch Method ==
  
 
This method is described in detail in our [[Drawing_a_smiley_face|smiley face tutorial]].   
 
This method is described in detail in our [[Drawing_a_smiley_face|smiley face tutorial]].   
Line 39: Line 33:
 
* Open the live path effect editor: Path>Path Effect Editor
 
* Open the live path effect editor: Path>Path Effect Editor
 
* Apply new effect: Hatches (rough) and click "+Add"
 
* Apply new effect: Hatches (rough) and click "+Add"
* Use the extension to set defaults: Extensions>Eggbot>Preset hatch for fills. (Optional; this changes the hatch parameters to pleasant defaults.)
+
* Use the extension to set defaults: Extensions>Eggbot>Preset hatch for fills
 
* Use the "edit paths by node" tool to  set the angle, spacing, and bending of the lines.
 
* Use the "edit paths by node" tool to  set the angle, spacing, and bending of the lines.
  
Line 45: Line 39:
  
  
This "live path effect" hatching method can handle paths that consist of multiple disjoint regions, for example, a set of stars or non-intersecting circles, but it ''does not'' work with "hollow" regions, for example a ring or washer (2D torus) shape.
+
This "Hatch" method can handle paths that consist of multiple disjoint regions, for example, a set of stars or non-intersecting circles, but it ''does not'' work with "hollow" regions, for example a ring or washer (2D torus) shape.
  
 
https://cdn.evilmadscientist.com/wiki/eggbot/fill/fill2.png
 
https://cdn.evilmadscientist.com/wiki/eggbot/fill/fill2.png
Line 51: Line 45:
 
Here are some concrete examples.  The four original (filled) shapes are on the left: A star, a square, a square with a star punched out-- essentially a hollow, ''ring-shaped'' fill region -- and a smaller square with a star punched out (a set of multiple disjoint regions).    In the middle set of four shapes, we've applied the hatch procedure as outlined above.  As you can see, it works well on three of the four shapes; but again it does not work on "hollow" areas. (It treats the inner cutout path as a separate path to be filled with hatching.)  The set of four shapes on the right have the same hatch applied, but we've also pasted a copy of the original outline shapes on top, to give more definition than you get from the fill alone.
 
Here are some concrete examples.  The four original (filled) shapes are on the left: A star, a square, a square with a star punched out-- essentially a hollow, ''ring-shaped'' fill region -- and a smaller square with a star punched out (a set of multiple disjoint regions).    In the middle set of four shapes, we've applied the hatch procedure as outlined above.  As you can see, it works well on three of the four shapes; but again it does not work on "hollow" areas. (It treats the inner cutout path as a separate path to be filled with hatching.)  The set of four shapes on the right have the same hatch applied, but we've also pasted a copy of the original outline shapes on top, to give more definition than you get from the fill alone.
  
While this hatch method is slightly complicated and does not work in every situation, it is without doubt ''the best method in any situation where it can be used''. It produces excellent results that plot smoothly and efficiently, with preset deceleration at each switchback and an absolute bare minimum of pen lifts.  Beyond all that, it's also a "live path effect," which means that it will automatically reflow as you change the shape of the filled region, and you can even remove the hatch at any time to restore your original object.
+
While the hatch method is slightly complicated and does not work in every situation, it is without doubt ''the best method in any situation where it can be used''. It produces excellent results that plot smoothly and efficiently, with preset deceleration at each switchback and an absolute bare minimum of pen lifts.  Beyond all that, it's also a "live path effect," which means that it will automatically reflow as you change the shape of the filled region, and you can even remove the hatch at any time to restore your original object.
  
  
Line 100: Line 94:
  
 
For non-hollow shapes where the hatch method works, it's often helpful to perform a single Inset operation before applying the hatch.  The result is shown above: The hatch marks do not go all the way to the edge of the filled region.  Using an initial inset like this is often a good way to compensate for pen width when filling a region.
 
For non-hollow shapes where the hatch method works, it's often helpful to perform a single Inset operation before applying the hatch.  The result is shown above: The hatch marks do not go all the way to the edge of the filled region.  Using an initial inset like this is often a good way to compensate for pen width when filling a region.
 +
 +
 +
= Eggbot Hatch Fill extension =
 +
 +
The Eggbot [[Hatch fill]] extension is a newer method of creating filled regions.  This extension creates a series of lines or cross hatches that can fill even complex shapes.  The lines are not connected, so it is not as efficient as the Hatches (rough) method above, but it does work in more circumstances.  See the [[Hatch fill|Hatch Fill documentation]] for more information.
 +
  
  
Line 120: Line 120:
 
While you can't always see it, paths in Inkscape have distinct orientation, with "start" and "end" points.  The smooth result that you see above will only work if both paths are going the same direction-- for example, if you drew both of them with downward pen strokes. If necessary, you can use the Path>Reverse command to reverse the direction of one of the paths.
 
While you can't always see it, paths in Inkscape have distinct orientation, with "start" and "end" points.  The smooth result that you see above will only work if both paths are going the same direction-- for example, if you drew both of them with downward pen strokes. If necessary, you can use the Path>Reverse command to reverse the direction of one of the paths.
  
You can also read more about the Interpolate function in [https://inkscape.org/en/doc/tutorials/interpolate/tutorial-interpolate.en.html this tutorial].  There is also a standard extension that has a similar effect (Generate from path>Interpolate...), but the live path effect version is much more powerful.
+
You can also read more about the Interpolate function in [http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-LivePathEffects-InterpolateSubPaths.html this tutorial].  There is also a standard extension that has a similar effect (Generate from path>Interpolate...), but the live path effect version is much more powerful.
 +
 
  
 
== Stitch Paths ==
 
== Stitch Paths ==
Line 154: Line 155:
  
 
Here's an example of something a little closer to a filled object.  The two paths are concentric, and the fills span the area between them.
 
Here's an example of something a little closer to a filled object.  The two paths are concentric, and the fills span the area between them.
 
 
 
= TSP Paths =
 
 
While not strictly a method of filling a region with a path, [[TSP_art|TSP art]] can be used to fill large areas with single lines that optically appear to form an image.
 

Please note that all contributions to Evil Mad Scientist Wiki are considered to be released under the GNU Free Documentation License 1.3 (see Evil Mad Scientist Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: