Difference between revisions of "Eggmazing"

From Evil Mad Scientist Wiki
Jump to: navigation, search
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{EggBotDocs}}
 
{{EggBotDocs}}
 +
  
  
Line 6: Line 7:
 
----
 
----
  
http://mtbaldy.us/~dnewman/tspart/extensions-maze-01.png
+
http://evilmadscience.s3.amazonaws.com/wiki/eggbot/extensiontut/extensions-maze-01.png
  
 
The Eggmazing extension generates cylindrical mazes.  The source code to the extension, eggbot_maze.py and eggbot_maze.inx, demonstrate how to write an Eggbot-centric extension for Inkscape.
 
The Eggmazing extension generates cylindrical mazes.  The source code to the extension, eggbot_maze.py and eggbot_maze.inx, demonstrate how to write an Eggbot-centric extension for Inkscape.
Line 12: Line 13:
 
When the Eggmazing extension is first started, it erases your current Inkscape document.  ''Be sure to run the extension from a new Inkscape drawing window.''  The extension's control panel presents you with a range of possible maze sizes.  Pick a size and then click the "Apply" button.  Once the maze is drawn, you can close the extension by clicking the "Close" button, or you can wipe the maze and generate a new one by again clicking "Apply".
 
When the Eggmazing extension is first started, it erases your current Inkscape document.  ''Be sure to run the extension from a new Inkscape drawing window.''  The extension's control panel presents you with a range of possible maze sizes.  Pick a size and then click the "Apply" button.  Once the maze is drawn, you can close the extension by clicking the "Close" button, or you can wipe the maze and generate a new one by again clicking "Apply".
  
<div style="text-align:center;">http://mtbaldy.us/~dnewman/tspart/extensions-maze-02.png</div>
+
<div style="text-align:center;">http://evilmadscience.s3.amazonaws.com/wiki/eggbot/extensiontut/extensions-maze-02.png</div>
  
The generated drawing places the maze's walls in a layer named "1&nbsp;-&nbsp;maze", and the maze's solution in another layer, "2&nbsp;-&nbsp;solution".  Each layer can be plotted separately using the [[Eggbot Control v21|Eggbot Controll]] extension's "Layers" tab. This permits drawing the solution in a separate color from the maze or omitting the solution entirely.
+
The generated drawing places the maze's walls in a layer named "1&nbsp;-&nbsp;maze", and the maze's solution in another layer, "2&nbsp;-&nbsp;solution".  Each layer can be plotted separately using the [[Eggbot Control v21|Eggbot Control]] extension's "Layers" tab. This permits drawing the solution in a separate color from the maze or omitting the solution entirely.
  
Note that the maze solution may wrap from the left edge of the drawing to the right edge.  This is because the maze is actually on a cylinder and the left and right edges are actually identical.  When plotting a maze, make sure that the "Egg (x) axis wraps around" checkbox is checked in the "Options" tab of the [[Eggbot Contro v21|Eggbot Control]] extension.
+
Note that the maze solution may wrap from the left edge of the drawing to the right edge.  This is because the maze is actually on a cylinder and the left and right edges are actually identical.  When plotting a maze, make sure that the "Egg (x) axis wraps around" checkbox is checked in the "Options" tab of the [[Eggbot Control v21|Eggbot Control]] extension.
  
 
----
 
----
  
 
[[Strip Eggbot Data|<<< Strip Eggbot Data]] || Eggmazing || [[Hatch fill|Hatch fill >>>]]
 
[[Strip Eggbot Data|<<< Strip Eggbot Data]] || Eggmazing || [[Hatch fill|Hatch fill >>>]]

Revision as of 14:02, 1 August 2013

This wiki page is part of the documentation for The Original Egg-Bot.
Click here to return to the Egg-Bot overview.


<<< Strip Eggbot Data || Eggmazing || Hatch fill >>>


extensions-maze-01.png

The Eggmazing extension generates cylindrical mazes. The source code to the extension, eggbot_maze.py and eggbot_maze.inx, demonstrate how to write an Eggbot-centric extension for Inkscape.

When the Eggmazing extension is first started, it erases your current Inkscape document. Be sure to run the extension from a new Inkscape drawing window. The extension's control panel presents you with a range of possible maze sizes. Pick a size and then click the "Apply" button. Once the maze is drawn, you can close the extension by clicking the "Close" button, or you can wipe the maze and generate a new one by again clicking "Apply".

extensions-maze-02.png

The generated drawing places the maze's walls in a layer named "1 - maze", and the maze's solution in another layer, "2 - solution". Each layer can be plotted separately using the Eggbot Control extension's "Layers" tab. This permits drawing the solution in a separate color from the maze or omitting the solution entirely.

Note that the maze solution may wrap from the left edge of the drawing to the right edge. This is because the maze is actually on a cylinder and the left and right edges are actually identical. When plotting a maze, make sure that the "Egg (x) axis wraps around" checkbox is checked in the "Options" tab of the Eggbot Control extension.


<<< Strip Eggbot Data || Eggmazing || Hatch fill >>>