From f64757a4dccde06dd903653d93ea76d7f8dbe05f Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 26 Jul 2015 21:59:30 +0200 Subject: Stick shuttle. --- src/fish_shuttle.scad | 4 ++++ src/lib/shuttle.scad | 17 +++++++++++++++++ src/shuttle.scad | 4 ---- src/stick_shuttle-18.scad | 3 +++ 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 src/fish_shuttle.scad create mode 100644 src/lib/shuttle.scad delete mode 100644 src/shuttle.scad create mode 100644 src/stick_shuttle-18.scad diff --git a/src/fish_shuttle.scad b/src/fish_shuttle.scad new file mode 100644 index 0000000..6b9a78e --- /dev/null +++ b/src/fish_shuttle.scad @@ -0,0 +1,4 @@ +minkowski() { + linear_extrude(height=4) import("gfx/shuttle.dxf"); + sphere(r=1, $fn=8); +} diff --git a/src/lib/shuttle.scad b/src/lib/shuttle.scad new file mode 100644 index 0000000..40234a8 --- /dev/null +++ b/src/lib/shuttle.scad @@ -0,0 +1,17 @@ + + +module stick_shuttle(l, r=4) { + difference() { + intersection() { + rotate([0, 90, 0]) hull() { + cylinder(r1=0.5, r2=r, h=r*2); + translate([0, 0, l - r * 2]) cylinder(r1=r, r2=0.5, h=r*2); + } + translate([-1, -r-1, -r/2]) cube([l+2, (r+1) * 2, r]); + } + translate([r*2, 0, 0]) cylinder(r=r/2.5, h=r*2, center=true, $fn=10); + translate([l - r*2, 0, 0]) cylinder(r=r/2.5, h=r*2, center=true, $fn=10); + translate([0, -r/4, -r]) cube([r*2, r/2, r*2]); + translate([l-r*2, -r/4, -r]) cube([r*2, r/2, r*2]); + } +} diff --git a/src/shuttle.scad b/src/shuttle.scad deleted file mode 100644 index 6b9a78e..0000000 --- a/src/shuttle.scad +++ /dev/null @@ -1,4 +0,0 @@ -minkowski() { - linear_extrude(height=4) import("gfx/shuttle.dxf"); - sphere(r=1, $fn=8); -} diff --git a/src/stick_shuttle-18.scad b/src/stick_shuttle-18.scad new file mode 100644 index 0000000..d8223ed --- /dev/null +++ b/src/stick_shuttle-18.scad @@ -0,0 +1,3 @@ +use + +stick_shuttle(180); -- cgit v1.2.3