Permalink
Browse files

Initial Commit

  • Loading branch information...
gregsaul committed Oct 15, 2012
1 parent f4c82fc commit 6fff73dfb4009509a55e42426a3c64ee41f3424e
Showing with 10,353 additions and 0 deletions.
  1. +8 −0 .classpath
  2. +17 −0 .project
  3. +7 −0 data/README
  4. BIN distribution/.DS_Store
  5. BIN distribution/codethread-0.1.1/download/codethread-0.1.1.zip
  6. +75 −0 distribution/codethread-0.1.1/examples/Hello/Hello.pde
  7. +670 −0 distribution/codethread-0.1.1/examples/simpleCube/code01.txt
  8. +76 −0 distribution/codethread-0.1.1/examples/simpleCube/simpleCube.pde
  9. +132 −0 distribution/codethread-0.1.1/index.html
  10. +31 −0 distribution/codethread-0.1.1/reference/allclasses-frame.html
  11. +31 −0 distribution/codethread-0.1.1/reference/allclasses-noframe.html
  12. +770 −0 distribution/codethread-0.1.1/reference/codeThreadLib/library/CodeThread.html
  13. +32 −0 distribution/codethread-0.1.1/reference/codeThreadLib/library/package-frame.html
  14. +153 −0 distribution/codethread-0.1.1/reference/codeThreadLib/library/package-summary.html
  15. +146 −0 distribution/codethread-0.1.1/reference/codeThreadLib/library/package-tree.html
  16. +170 −0 distribution/codethread-0.1.1/reference/constant-values.html
  17. +142 −0 distribution/codethread-0.1.1/reference/deprecated-list.html
  18. +209 −0 distribution/codethread-0.1.1/reference/help-doc.html
  19. +267 −0 distribution/codethread-0.1.1/reference/index-all.html
  20. +36 −0 distribution/codethread-0.1.1/reference/index.html
  21. +148 −0 distribution/codethread-0.1.1/reference/overview-tree.html
  22. +1 −0 distribution/codethread-0.1.1/reference/package-list
  23. BIN distribution/codethread-0.1.1/reference/resources/inherit.gif
  24. +310 −0 distribution/codethread-0.1.1/reference/stylesheet.css
  25. +203 −0 distribution/codethread-0.1.1/stylesheet.css
  26. BIN distribution/codethread-0.1.2/download/codethread-0.1.2.zip
  27. +75 −0 distribution/codethread-0.1.2/examples/Hello/Hello.pde
  28. +670 −0 distribution/codethread-0.1.2/examples/simpleCube/code01.txt
  29. +76 −0 distribution/codethread-0.1.2/examples/simpleCube/simpleCube.pde
  30. +132 −0 distribution/codethread-0.1.2/index.html
  31. +31 −0 distribution/codethread-0.1.2/reference/allclasses-frame.html
  32. +31 −0 distribution/codethread-0.1.2/reference/allclasses-noframe.html
  33. +770 −0 distribution/codethread-0.1.2/reference/codeThreadLib/library/CodeThread.html
  34. +32 −0 distribution/codethread-0.1.2/reference/codeThreadLib/library/package-frame.html
  35. +153 −0 distribution/codethread-0.1.2/reference/codeThreadLib/library/package-summary.html
  36. +146 −0 distribution/codethread-0.1.2/reference/codeThreadLib/library/package-tree.html
  37. +170 −0 distribution/codethread-0.1.2/reference/constant-values.html
  38. +142 −0 distribution/codethread-0.1.2/reference/deprecated-list.html
  39. +209 −0 distribution/codethread-0.1.2/reference/help-doc.html
  40. +267 −0 distribution/codethread-0.1.2/reference/index-all.html
  41. +36 −0 distribution/codethread-0.1.2/reference/index.html
  42. +148 −0 distribution/codethread-0.1.2/reference/overview-tree.html
  43. +1 −0 distribution/codethread-0.1.2/reference/package-list
  44. BIN distribution/codethread-0.1.2/reference/resources/inherit.gif
  45. +310 −0 distribution/codethread-0.1.2/reference/stylesheet.css
  46. +203 −0 distribution/codethread-0.1.2/stylesheet.css
  47. +75 −0 examples/Hello/Hello.pde
  48. +1 −0 examples/README
  49. +670 −0 examples/simpleCube/code01.txt
  50. +76 −0 examples/simpleCube/simpleCube.pde
  51. +6 −0 lib/README
  52. +202 −0 readme.html
  53. +29 −0 resources/ChangeLog.txt
  54. +123 −0 resources/build.properties
  55. +369 −0 resources/build.xml
  56. +231 −0 resources/code/ExampleTaglet.java
  57. +18 −0 resources/code/doc.sh
  58. +29 −0 resources/install_instructions.txt
  59. +310 −0 resources/stylesheet.css
  60. +295 −0 src/codeThreadLib/library/CodeThread.java
  61. +348 −0 src/codeThreadLib/library/ThreadCommands.java
  62. +132 −0 web/index.html
  63. +203 −0 web/stylesheet.css
View
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="resources/code"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="/Users/gregsaul/myMedia/myEclipse/libs/core.jar"/>
+ <classpathentry kind="output" path="resources/code"/>
+</classpath>
View
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>codeThreadLib</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
@@ -0,0 +1,7 @@
+the data folder:
+If your library is using files like images, sound files,
+any data file, etc., put them into the data folder.
+When coding your library you can use processing's internal loading
+functions like loadImage(), loadStrings(), etc. to load files
+located inside the data folder into your library.
+
View
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,75 @@
+/**
+* codeThread - simple cube example
+* by: Diatom Studio (diatom.cc)
+*
+* A simple example of using codeThread to generate tool paths or printing a simple cube and raft on makerbot
+*
+*
+*/
+
+import codeThreadLib.library.*;
+
+CodeThread codeThread = new CodeThread(this);
+
+void setup() {
+ size(300,300,P3D);
+
+ codeThread.setDefault(); // set your craft robo to default settings
+
+ //generate a cube
+ float sideLen = 30; // lenght of the cubes side
+ float headSpeed = 1556.0f; // speed that the extruder head will travel at whilst printing
+ float zPos = 0; // keep track of the z pos of the extruder head
+ float zStep = 0.35f; // the amount to move up each step on the z axis
+
+ //generate a raft
+ codeThread.generateRaft(sideLen +5, sideLen + 5, 560,1500, 2.5f,1.5f); // generate a raft generateRaft(raftWidth,raftLength, headSpeedBottomLayer,headSpeedTopLayer, distanceBetweenSlatsBottomLayer,DistanceBetweenSlatsTopLayer)
+ zPos = 1.27;// after drawing the raft our new zheight is 1.27(mm)
+
+ for(zPos = 1.27; zPos < sideLen ; zPos+=zStep) {
+
+ //move the extruder head to each corner of the box
+ codeThread.moveTo(-(sideLen/2),-(sideLen/2),zPos,headSpeed);
+
+ codeThread.extruderOnFwd(); // start extruding, now we're at the start point
+
+ codeThread.moveTo((sideLen/2),-(sideLen/2),zPos,headSpeed); //whilst extruding move extruder to 2nd corner
+ codeThread.moveTo((sideLen/2),(sideLen/2),zPos,headSpeed);
+ codeThread.moveTo(-(sideLen/2),(sideLen/2),zPos,headSpeed);
+ codeThread.moveTo(-(sideLen/2),-(sideLen/2),zPos,headSpeed); //back to the start,
+
+ //now we have a square, step up in the z direction and start all over again
+ codeThread.extruderOff(); // stop extruding
+ }
+
+ codeThread.printToConsole(); // print to console
+ codeThread.writeToFile(sketchPath +"/code01.txt");
+}
+
+
+
+
+void draw() {
+
+ //make things pretty, rotate and zoom to see cube
+ smooth();
+ background(255);
+ pushMatrix();
+ translate(width/2,height/2);//center at 0,0
+ rotateX(PI/4);
+ rotateZ(PI/4);
+ scale(3.5f);
+
+ //draw the platform
+ noStroke();
+ fill(220,220,220);
+ rect(-(80/2),-(80/2),(80),(80)); // draw the makerbot platform for reference
+ stroke(255,0,0);
+
+
+ codeThread.render(); //render the tool paths
+
+
+ popMatrix();
+}
+
Oops, something went wrong.

0 comments on commit 6fff73d

Please sign in to comment.