diff --git a/openscad/own/shelf-mounting/IMG/shelf-mounting.png b/openscad/own/shelf-mounting/IMG/shelf-mounting.png new file mode 100644 index 0000000..7c891d3 Binary files /dev/null and b/openscad/own/shelf-mounting/IMG/shelf-mounting.png differ diff --git a/openscad/own/shelf-mounting/STL/shelf-mounting.stl b/openscad/own/shelf-mounting/STL/shelf-mounting.stl new file mode 100644 index 0000000..c19833a Binary files /dev/null and b/openscad/own/shelf-mounting/STL/shelf-mounting.stl differ diff --git a/openscad/own/shelf-mounting/shelf-mounting.scad b/openscad/own/shelf-mounting/shelf-mounting.scad new file mode 100644 index 0000000..27584d2 --- /dev/null +++ b/openscad/own/shelf-mounting/shelf-mounting.scad @@ -0,0 +1,41 @@ +// shelf-mounting +// 2022-07-28 by zeus - zeus86@github.com - cc-by-sa-nc 4.0 +// ############################# +// vars: +mnt_w=25; +mnt_d=mnt_w; +mnt_h=mnt_w; +mnt_hole_dia=5; +countersunk=1; +mt=5; +plate_offset=5; //offset from center for the plate-facing screw +wall_offset=2.5; //offset from center for the wall-facing screw +$fn=100; +// ############################# +// model: + +module mountblock(){ + difference(){ + cube([mnt_w,mnt_d,mnt_h],center=true); //base-cube + translate([0,-mt/2,-mt/2])cube([mnt_w-2*mt+0.1,mnt_d-mt+0.1,mnt_h-mt+0.1],center=true); //cutout cube + rotate([90,0,0])translate([0,0,-mnt_d/2+mt/2])translate([0,-wall_offset,0]){ + cylinder(r=mnt_hole_dia/2,h=mt+0.1,center=true); //screwhole, wall-facing + if (countersunk == 1){ + translate([0,0,mt/4])cylinder(r1=mnt_hole_dia/2,r2=mnt_hole_dia,h=mt/2+0.1,center=true); //countersunk if applicable + } + } + rotate([90,0,0]){translate([0,0,plate_offset]) + rotate([90,0,0])translate([0,0,-mnt_d/2+mt/2]){ + cylinder(r=mnt_hole_dia/2,h=mt+0.1,center=true); //screwhole, wall-facing + if (countersunk == 1){ + translate([0,0,mt/4])cylinder(r1=mnt_hole_dia/2,r2=mnt_hole_dia,h=mt/2+0.1,center=true); //countersunk if applicable + } + } + } + } +} + + +// ############################# +// draw models: +mountblock(); \ No newline at end of file