Skip to content
Browse files

Merge https://github.com/clothbot/PrusaMendel

Conflicts:
	mbotplate1.stl
	plate1.stl
	x-carriage.stl
	x-end-motor.stl
	z-motor-mount.stl
  • Loading branch information...
2 parents 425d1cd + 33f72ba commit ec158ffe68cfda24ceb47beaf8f77f34e4e1e267 @colah colah committed
View
67 Makefile
@@ -0,0 +1,67 @@
+UNAME := $(shell uname)
+ifeq ($(UNAME), Darwin)
+OPENSCAD:=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
+endif
+ifneq ($(UNAME), Darwin)
+OPENSCAD:=$(shell which openscad)
+endif
+
+BUILDDIR=./build
+
+# PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing prusalogo rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount
+## prusalogo.scad depends on bitmap.scad
+PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount
+
+.PHONY : usage all clean $(PARTS) MakerbotPlates MendelPlate
+
+default : usage
+
+usage :
+ @echo "Usage 'make parts'"
+ @echo " make parts MakerbotPlates"
+ @echo " make parts MendelPlate"
+ @echo " make OPENSCAD=\`which openscad\` parts MakerbotPlates"
+ @echo "Variable Values:"
+ @echo " BUILDDIR = $(BUILDDIR)"
+ @echo " OPENSCAD = $(OPENSCAD)"
+ @echo " PARTS = $(PARTS)"
+ @echo " UNAME = $(UNAME)"
+
+all : parts MakerbotPlates
+
+parts : $(PARTS)
+
+$(BUILDDIR) :
+ mkdir -p $(BUILDDIR)
+
+MakerbotPlates : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ cp makerbot.scad $(BUILDDIR)
+ cp frame-vertex-foot.stl $(BUILDDIR)
+ cp prusalogo.stl $(BUILDDIR)
+ cp y-motor-bracket_1off.stl $(BUILDDIR)
+ cp z-bar-top-clamp_4off.stl $(BUILDDIR)
+ $(OPENSCAD) -D render_plate=1 -s $(BUILDDIR)/mbplate1.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=2 -s $(BUILDDIR)/mbplate2.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=3 -s $(BUILDDIR)/mbplate3.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=4 -s $(BUILDDIR)/mbplate4.stl $(BUILDDIR)/makerbot.scad
+ $(OPENSCAD) -D render_plate=5 -s $(BUILDDIR)/mbplate5.stl $(BUILDDIR)/makerbot.scad
+
+MendelPlate : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ cp plate1.scad $(BUILDDIR)
+ cp frame-vertex-foot.stl $(BUILDDIR)
+ cp prusalogo.stl $(BUILDDIR)
+ cp y-motor-bracket_1off.stl $(BUILDDIR)
+ cp z-bar-top-clamp_4off.stl $(BUILDDIR)
+ $(OPENSCAD) -s $(BUILDDIR)/plate1.stl $(BUILDDIR)/plate1.scad
+
+$(PARTS) : $(BUILDDIR) $(BUILDDIR)/pulley.stl
+ @echo "Processing $@"
+ $(OPENSCAD) -s $(BUILDDIR)/$@.stl $@.scad
+
+$(BUILDDIR)/pulley.stl : $(BUILDDIR)
+ @echo "Fetching nophead's pulley.stl..."
+ pushd $(BUILDDIR); wget http://www.thingiverse.com/download:5914; popd
+
+clean :
+ $(RM) -rf $(BUILDDIR)
+
View
1,458 bar-clamp.stl
Deleted file not rendered
View
646 belt-clamp.stl
Deleted file not rendered
View
3,614 coupling.stl
Deleted file not rendered
View
1,430 endstop-holder.stl
Deleted file not rendered
View
BIN frame-vertex-foot.stl
Deleted file not rendered
View
BIN frame-vertex.stl
Deleted file not rendered
View
27 makerbot.scad
@@ -1,6 +1,7 @@
include <configuration.scad>
bfb = false;
orientation = true;
+render_plate=1;
module xcarriage(){
translate(v = [0,0,2.5]) union(){difference(){
union(){
@@ -405,4 +406,28 @@ translate([45,-5,0]) rotate([0,-90,-35]) import_stl("y-motor-bracket_1off.stl");
}
//#translate([-49,-49,-1]) cube(size=[98,98,1]);
-translate([-49,-49,0]) mbplate1();
+if(render_plate==1) {
+ echo("Rendering Plate 1...");
+ translate([-49,-49,0]) mbplate1();
+}
+
+if(render_plate==2) {
+ echo("Rendering Plate 2...");
+ translate([-49,-49,0]) mbplate2();
+}
+
+if(render_plate==3) {
+ echo("Rendering Plate 3...");
+ translate([-49,-49,0]) mbplate3();
+}
+
+if(render_plate==4) {
+ echo("Rendering Plate 4...");
+ translate([-49,-49,0]) mbplate4();
+}
+
+if(render_plate==5) {
+ echo("Rendering Plate 5...");
+ translate([-49,-49,0]) mbplate5();
+}
+
View
173,434 mbotplate1.stl
Deleted file not rendered
View
18,104 mbotplate2.stl
Deleted file not rendered
View
21,534 mbotplate3.stl
Deleted file not rendered
View
11,650 mbotplate4.stl
Deleted file not rendered
View
4,482 mbotplate5.stl
Deleted file not rendered
View
6,050 pla-bushing.stl
Deleted file not rendered
View
BIN plate1-netfabb.stl
Deleted file not rendered
View
229,196 plate1.stl
Deleted file not rendered
View
4,902 prusalogo.stl
Deleted file not rendered
View
BIN pulley.stl
Deleted file not rendered
View
1,346 rod-clamp.stl
Deleted file not rendered
View
37,242 vertextstack.stl
Deleted file not rendered
View
6,932 x-carriage.stl
Deleted file not rendered
View
5,938 x-end-idler.stl
Deleted file not rendered
View
21,058 x-end-motor.stl
Deleted file not rendered
View
BIN y-motor-bracket_1off.stl
Deleted file not rendered
View
BIN z-bar-top-clamp_4off.stl
Deleted file not rendered
View
3,754 z-motor-mount-onerod.stl
Deleted file not rendered
View
5,770 z-motor-mount.stl
Deleted file not rendered

0 comments on commit ec158ff

Please sign in to comment.
Something went wrong with that request. Please try again.