Permalink
Browse files

update readme with example

  • Loading branch information...
gregsaul committed Oct 15, 2012
1 parent 3370365 commit 857d8eb5986eb6b7ed94da6504fdd33c1e236f39
Showing with 23 additions and 1 deletion.
  1. +23 −1 README.md
View
@@ -1,4 +1,26 @@
CodeThread
==========
-CodeThread is libary for processing that lets you create g-code as you calculate coordinates for a toolpath. One of the things we love about makerbot in contrast to commercial printers is that you have complete control over every aspect of the print technique. We think there is a lot of opportunity to develop new printing styles with makerbots, beyond traditional solid prints. We wanted to experiment with the materiality of makerbot prints by working directly in gcode with processing, so we made this small library that provides some simple functions for generating gcode commands, and prints a gcode file.
+CodeThread is libary for processing that lets you create g-code as you calculate coordinates for a toolpath. One of the things we love about makerbot in contrast to commercial printers is that you have complete control over every aspect of the print technique. We think there is a lot of opportunity to develop new printing styles with makerbots, beyond traditional solid prints. We wanted to experiment with the materiality of makerbot prints by working directly in gcode with processing, so we made this small library that provides some simple functions for generating gcode commands, and prints a gcode file.
+
+
+****For example, here is some code for a 30mm thin-walled cube:****
+
+`CodeThread codeThread= new CodeThread();
+
+int feed = 1200;
+
+codeThread.setDefaults();
+codeThread.extruderOnFwd();
+
+codeThread.generateRaft(40, 40, 560, 1500, 2.5, 1.5);
+
+for(float i=0; i<30; i+=0.35) {
+codeThread.moveTo(15, 15, 1.27+i, feed);
+codeThread.moveTo(-15, 15, 1.27+i, feed);
+codeThread.moveTo(-15, -15, 1.27+i, feed);
+codeThread.moveTo(15, -15, 1.27+i, feed);
+}
+
+codeThread.extruderOff();
+codeThread.writeToFile(sketchPath + "30mmbox.gcode");`

0 comments on commit 857d8eb

Please sign in to comment.