Last active
November 6, 2016 03:26
-
-
Save evamvid/c22941158ea4f25100a577a194346f5a to your computer and use it in GitHub Desktop.
fullcasebackup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = 43.5; | |
y = 120; | |
portx = 47; | |
porty = 100; | |
//%translate([49,-125,0]) rotate([0, 0, 90]) import("plate.stl"); | |
union() { | |
difference(){ | |
minkowski(){ | |
cube([98, 250, 16], center = true); | |
sphere(3, $fn=20); | |
}; | |
cube([75, 230, 30], center = true); | |
translate([x, y, -15]) cylinder(r=2, h=30, $fn = 20); | |
translate([-x, y, -15]) cylinder(r=2, h=30, $fn = 20); | |
translate([x, -y, -15]) cylinder(r=2, h=30, $fn = 20); | |
translate([-x, -y, -15]) cylinder(r=2, h=30, $fn = 20); | |
translate([portx, porty, 0]) cube([15, 22, 5], center=true); | |
translate([portx, porty + 8, 3.5]) cylinder(r=1.5, h=20 , $fn = 20, center=true); | |
translate([portx, porty - 8, 3.5]) cylinder(r=1.5, h=20 , $fn = 20, center=true); | |
translate([portx + 2, porty + 8, -5]) cube([6.5, 5.6, 2.6], center = true); | |
translate([portx + 2, porty - 8, -5]) cube([6.5, 5.6, 2.6], center = true); | |
}; | |
translate([0, 0, -3.45]) difference(){ | |
hull(){ | |
translate([38, 0, 0]) cube([0.1, 30, 15], center=true); | |
translate([30, 0, 0]) cube([1, 20, 15], center=true); | |
}; | |
translate([32, 8, 0]) cube([6, 2.5, 6.1], center=true); | |
translate([32, -8, 0]) cube([6, 2.5, 6.1], center=true); | |
translate([33, 0, 0]) rotate([90, 0, 0]) cylinder(r=1.7, h = 30, $fn=20, center = true); | |
}; | |
translate([0, 0, -3.45]) difference() { | |
hull(){ | |
translate([-38, 0, 0]) cube([1, 30, 15], center=true); | |
translate([-30, 0, 0]) cube([1, 20, 15], center=true); | |
}; | |
translate([-32, 8, 0]) cube([6, 2.5, 6.1], center=true); | |
translate([-32, -8, 0]) cube([6, 2.5, 6.1], center=true); | |
translate([-33, 0, 0]) rotate([90, 0, 0]) cylinder(r=1.7, h = 30, $fn=20, center = true); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fullcase for my custom jd40 keyboard. Openscad is having a nasty habit of crashing and reducing my files to unicode junk, so this is my backup for now.