Skip to content

Instantly share code, notes, and snippets.

@ViliusKraujutis
Created September 1, 2017 21:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ViliusKraujutis/43ed4833da8355b76a69de1c955ac86a to your computer and use it in GitHub Desktop.
A holder for table lamp to fit on the corner of IKEA table
$fn=60;
holeH=37;
holeD=12.5;
h=40;
module lampHolder() {
difference() {
holderBody();
tableSpace();
lampHole();
}
}
module holderBody() {
hull() {
cylinder(d=17, h=h);
cylinder(d=75, h=10);
translate([-40,-40,-30]) cube([80,80,6]);
}
}
module tableSpace() {
translate([-53,-53,-23]) cube([80,80,23]);
}
module lampHole() {
translate([0,0,h-holeH])
cylinder(d=holeD,h=holeH);
}
lampHolder();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment