scad/ikea leg extension.scad

23 lines
514 B
OpenSCAD

// extension ikea square table legs
lip_height = 25.4; // 1"
lip_thickness = 10; // 1cm
extension_height = 76.2; // 3"
// probably shouldnt need to change these
inner_w = 25.4 * 2; // 2"
inner_t = 25.4 * 2; // 2"
w = lip_thickness + inner_w;
h = lip_thickness + inner_t;
union() {
difference() {
cube([w, h, lip_height], true);
cube([inner_w, inner_t, lip_height], true);
}
translate([0, 0, -extension_height/2-lip_height/2]) {
cube([w, h, extension_height], true);
}
}