Skip to content

Instantly share code, notes, and snippets.

@evamvid
Last active November 6, 2016 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evamvid/c22941158ea4f25100a577a194346f5a to your computer and use it in GitHub Desktop.
Save evamvid/c22941158ea4f25100a577a194346f5a to your computer and use it in GitHub Desktop.
fullcasebackup
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);
};
};
@evamvid
Copy link
Author

evamvid commented Nov 6, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment