diff --git a/README.md b/README.md index 6537c3c..aedb2ad 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ -# 3d-printer-models -Models that I developed for my 3D printer +# 3D Printer Models + +Various models that I developed for my 3D printer. + +The models come with + +* a `.scad` file with the OpenSCAD source code, +* a `.stl` file with the exported model, +* a `.png` file with a preview, and sometimes +* a `.3mf` file with a Bambu Lab printer profile. diff --git a/cube-with-square-hole.png b/cube-with-square-hole.png new file mode 100644 index 0000000..9cb1512 Binary files /dev/null and b/cube-with-square-hole.png differ diff --git a/cube-with-square-hole.scad b/cube-with-square-hole.scad new file mode 100644 index 0000000..9de200f --- /dev/null +++ b/cube-with-square-hole.scad @@ -0,0 +1,23 @@ +/* https://danielupshaw.com/openscad-rounded-corners */ +include ; + +cube_size=40; +cutout_size=15; + +$fn=80; + +difference() { + roundedcube(cube_size, center=true, radius=2); + + group() { + rotate([45,0,0]) { + cube([60,cutout_size,cutout_size], center=true); + } + rotate([45,90,0]) { + cube([60,cutout_size,cutout_size], center=true); + } + rotate([45,0,90]) { + cube([60,cutout_size,cutout_size], center=true); + } + } +} diff --git a/cube-with-square-hole.stl b/cube-with-square-hole.stl new file mode 100644 index 0000000..9b753be Binary files /dev/null and b/cube-with-square-hole.stl differ diff --git a/simple-rounded-s-hook.3mf b/simple-rounded-s-hook.3mf new file mode 100644 index 0000000..88e1cd8 Binary files /dev/null and b/simple-rounded-s-hook.3mf differ diff --git a/simple-rounded-s-hook.png b/simple-rounded-s-hook.png new file mode 100644 index 0000000..4227420 Binary files /dev/null and b/simple-rounded-s-hook.png differ diff --git a/simple-rounded-s-hook.scad b/simple-rounded-s-hook.scad new file mode 100644 index 0000000..ca6df97 --- /dev/null +++ b/simple-rounded-s-hook.scad @@ -0,0 +1,57 @@ +/* https://github.com/BelfrySCAD/BOSL2 */ +include +include + +loop_r = 30; +hook_d = 15; +hook_angle = 145; +straight_l = 85; +flatten_h = hook_d/20; + +$fn=80; + +difference() { + /* Hook */ + group() { + /* Start cap */ + rotate([0,-90,0]) { + rotate_extrude(){ + intersection(){ + circle(d=hook_d); + square(hook_d); + } + } + } + + /* Draw the hook */ + turtle_cmds = ["arcrightto", loop_r, hook_angle, + "move", straight_l, + "arcleftto", loop_r, 0]; + path = turtle(turtle_cmds, + state=[0,0], + full_state=false); + path_sweep(circle(d = hook_d), path); + + /* End cap */ + translate(path[len(path) - 1]) { + rotate([0,90,0]) { + rotate_extrude(){ + intersection(){ + circle(d=hook_d); + square(hook_d); + } + } + } + } + } + + /* Flatten the hook with two */ + group(){ + translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,(hook_d/2)-flatten_h]) { + cube([4*straight_l,2*straight_l,flatten_h]); + } + translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,-(hook_d/2)]) { + cube([4*straight_l,2*straight_l,flatten_h]); + } + } +} \ No newline at end of file diff --git a/simple-rounded-s-hook.stl b/simple-rounded-s-hook.stl new file mode 100644 index 0000000..bcd1b29 Binary files /dev/null and b/simple-rounded-s-hook.stl differ diff --git a/tree-stand-floor-protector.3mf b/tree-stand-floor-protector.3mf new file mode 100644 index 0000000..f0b77a1 Binary files /dev/null and b/tree-stand-floor-protector.3mf differ diff --git a/tree-stand-floor-protector.png b/tree-stand-floor-protector.png new file mode 100644 index 0000000..9907052 Binary files /dev/null and b/tree-stand-floor-protector.png differ diff --git a/tree-stand-floor-protector.scad b/tree-stand-floor-protector.scad new file mode 100644 index 0000000..5dbe005 --- /dev/null +++ b/tree-stand-floor-protector.scad @@ -0,0 +1,48 @@ +ellipse_w = 46; +ellipse_d = 40; +ellipse_h = 2; +lip = 2; +peg_h = 6; +peg_d = 6; + +$fn=100; + +linear_extrude(ellipse_h) { + resize([ellipse_w+2*lip,ellipse_d+2*lip]) { + circle(d=ellipse_w); + } +} + +translate([0,0,ellipse_h]){ + difference() { + linear_extrude(lip) { + resize([ellipse_w+2*lip,ellipse_d+2*lip]) { + circle(d=ellipse_w); + } + } + linear_extrude(lip) { + group() { + resize([ellipse_w,ellipse_d]) { + circle(d=ellipse_w); + } + translate([ellipse_w/2,0,0]) { + square([ellipse_w,ellipse_d], center=true); + } + } + } + } +} + + +linear_extrude(peg_h) { + circle(d = peg_d); +} + +translate([0,0,peg_h]) { + rotate_extrude(){ + intersection(){ + circle(d=peg_d); + square(peg_d); + } + } +} diff --git a/tree-stand-floor-protector.stl b/tree-stand-floor-protector.stl new file mode 100644 index 0000000..768ba05 Binary files /dev/null and b/tree-stand-floor-protector.stl differ