include <BOSL2/std.scad>

tabl_w = 90;
tabl_d = 40;
tabl_h = 5*5;

glass_d = 23;

t = 3;

difference() {
  chain_hull() {
    cuboid([tabl_w+t,tabl_d+t,tabl_h+t], rounding=2);
    translate([tabl_w/2 + glass_d/2 + t,0,0]) cyl(d=glass_d+t, h=tabl_h+t, rounding=2);
  }

  translate([0,0,t]) cuboid([tabl_w,tabl_d,tabl_h+2*t], rounding=2);
  translate([tabl_w/2 + glass_d/2 + t,0,t]) cyl(d=glass_d, h=tabl_h+t, rounding=2);
  translate([tabl_w/2 + glass_d/2 + t,0,]) cyl(d=glass_d-2*t, h=tabl_h+t);
  
  translate([0,0,t])cuboid([tabl_d, tabl_w, tabl_h+2*t]);

}