/* https://github.com/BelfrySCAD/BOSL2 */ include $fn = 150; border_width = 5; border_height = 5; border_chamfer = 3; bottle_width = 62; bottle_rounding = 20; coaster_height = 2; coaster_width = bottle_width+2*border_width; module bottle_coaster(width, height) { cuboid( [width,height,coaster_height], rounding=bottle_rounding+border_width/2, edges="Z", anchor=[0,0,-1] ); up(coaster_height) rect_tube( size=[width,height], wall=border_width, h=border_height-border_chamfer, rounding=bottle_rounding+border_width/2, irounding=bottle_rounding, anchor=[0,0,-1] ); up(coaster_height+border_height-border_chamfer) rect_tube( size1=[width,height], size2=[width-border_chamfer,height-border_chamfer], isize1=[width-2*border_width,height-2*border_width], isize2=[width-2*border_width+border_chamfer,height-2*border_width+border_chamfer], h=border_chamfer, rounding=bottle_rounding+border_width/2, irounding=bottle_rounding, anchor=[0,0,-1] ); } bottle_coaster(width=coaster_width, height=coaster_width);