diff --git a/openscad/own/usb-c-dock-wallmount/IMG/usb-c-dock-wallmount-itec-dual_holes.png b/openscad/own/usb-c-dock-wallmount/IMG/usb-c-dock-wallmount-itec-dual_holes.png new file mode 100644 index 0000000..95dfef2 Binary files /dev/null and b/openscad/own/usb-c-dock-wallmount/IMG/usb-c-dock-wallmount-itec-dual_holes.png differ diff --git a/openscad/own/usb-c-dock-wallmount/STL/usb-c-dock-wallmount-itec-dual-holes.stl b/openscad/own/usb-c-dock-wallmount/STL/usb-c-dock-wallmount-itec-dual-holes.stl new file mode 100644 index 0000000..cb011c4 Binary files /dev/null and b/openscad/own/usb-c-dock-wallmount/STL/usb-c-dock-wallmount-itec-dual-holes.stl differ diff --git a/openscad/own/usb-c-dock-wallmount/usb-c-dock-wallmount.scad b/openscad/own/usb-c-dock-wallmount/usb-c-dock-wallmount.scad index ab7c661..d21aadf 100644 --- a/openscad/own/usb-c-dock-wallmount/usb-c-dock-wallmount.scad +++ b/openscad/own/usb-c-dock-wallmount/usb-c-dock-wallmount.scad @@ -24,6 +24,7 @@ q=0.01; // used to avoid graphical glitches percentage=0.20; // how many % of the overall height (from the bottom) should be generated (default: 40%) hole_offset=15; // hole-distance from bottom holedia=4.5; // diameter of the hole for the screw +dual_hole_spacing=width/1.75; // set to 0 if you want to use a single hole // //################## // @@ -36,16 +37,18 @@ module base(){ // inner cube translate([0,0,height/2+mt])cube([width,depth,height],center=true); // front cutout - translate([0,-(depth/2+mt/2),height/2+mt])cube([width-tab*2,mt+q,height-tab_bf´*2],center=true); + translate([0,-(depth/2+mt/2),height/2+mt])cube([width-tab*2,mt+q,height-tab_bf*2],center=true); // side cutout right translate([+(width/2+mt/2),0,height/2+mt])cube([mt+q,depth-tab*2,height-tab_b*2],center=true); // side cutout left translate([-(width/2+mt/2),0,height/2+mt])cube([mt+q,depth-tab*2,height-tab_b*2],center=true); // screwpost - translate([0,depth/2+mt/2,hole_offset]){ - rotate([90,0,0]){ - cylinder(r=holedia/2,h=mt+q,center=true); - translate([0,0,0.5])cylinder(r1=holedia/2,r2=holedia,h=3+q,center=true); + for(x=[dual_hole_spacing/2,-dual_hole_spacing/2]){ + translate([x,depth/2+mt/2,hole_offset]){ + rotate([90,0,0]){ + cylinder(r=holedia/2,h=mt+q,center=true); + translate([0,0,0.5])cylinder(r1=holedia/2,r2=holedia,h=3+q,center=true); + } } }