Draw

Draw is a simple program to simplify the construction of description files for use with the L3G0 library.

You use one input file for each layer of bricks. For example:

     xxxxyyyyzz
     xxxxyyyyzz
     yy      zz
     yy      zz
     yyaaaabbbb
     yyaaaabbbb
is an input for a wall of 2x4 bricks. You just use different letters for adjacent bricks and "draw" your model with a text editor. The origin is in the upper left corner, with the x axis horizontal and the y axis vertical. Only non-negative coordinates are generated. The z value is the command-line parameter.

Unfortunately, it is quite difficult to enter special pieces this way, though the code currently has some hacks for a few that I use in my castle. To be safe, just use letters and numbers for bricks, and if I add more hacks for special pieces, I'll use punctuation marks for them.

So here's the source.

You may find that with different versions of clickcom and the L3G0 library that the programs generate some incompatible symbols, so you might have to play around with sed to patch things up. (I'm using a really old version of clickcom--from before the L3G0 name.)