From b41dda92eac4115823639c38ec96d9c9ebfd6cf1 Mon Sep 17 00:00:00 2001 From: Andreas Schiweck Date: Sun, 30 Jun 2019 22:13:45 +0200 Subject: [PATCH] - slighty fixed Ankerpowerport5 size --- RackCabinets/AnkerPowerPort5/case.scad | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/RackCabinets/AnkerPowerPort5/case.scad b/RackCabinets/AnkerPowerPort5/case.scad index 0267972..f633467 100755 --- a/RackCabinets/AnkerPowerPort5/case.scad +++ b/RackCabinets/AnkerPowerPort5/case.scad @@ -15,31 +15,25 @@ if (debug) { ////////////////////////////////////////////////// -AnkerPowerPort5_length = 90.1; -AnkerPowerPort5_height = 26.1; -AnkerPowerPort5_width = 57.5; +AnkerPowerPort5_length = 90; +AnkerPowerPort5_height = 27; +AnkerPowerPort5_width = 58; AnkerPowerPort5_powerdepth = 50; -usb_padding = 9; Part = "a"; // [a:All, b:FrontPlate, c:Cabinet, d:Lid, e:BackPlate, f:Handles] Units = 3; Depth = AnkerPowerPort5_length + AnkerPowerPort5_powerdepth; -/* xoffset = (width - AnkerPowerPort5_width) / 2; */ -/* yoffset = ((Units * unit) - AnkerPowerPort5_height) / 2; */ -/* round_holes = [[xoffset + 15, yoffset + 16, 10], [xoffset + 15, yoffset + 30, 10], */ -/* [xoffset + 38.5, yoffset + 12, 13], [xoffset + 38.5, yoffset + 28, 13], */ -/* [xoffset + 57, yoffset + 12, 13], [xoffset+ 57, yoffset + 28, 13], */ -/* [xoffset + 76, yoffset + 15.5, 7]]; */ +xoffset = ((width - AnkerPowerPort5_width) / 2) - 2; +yoffset = (((Units * unit) - AnkerPowerPort5_height) / 2) - 2; round_holes = [[6, 9, 6], [6, 5, 6], [6, 1, 6]]; -square_holes = [[29, usb_padding, 6, 14], - [29+(1*10), usb_padding, 6, 14], - [29+(2*10), usb_padding, 6, 14], - [29+(3*10), usb_padding, 6, 14], - [29+(4*10), usb_padding, 6, 14], - [29+(5*10) ,usb_padding, 6, 14]]; +square_holes = [[xoffset + 5.5, yoffset + 6, 6, 14], + [xoffset + 5.5 +(1*10), yoffset + 6, 6, 14], + [xoffset + 5.5 +(2*10), yoffset + 6, 6, 14], + [xoffset + 5.5 +(3*10), yoffset + 6, 6, 14], + [xoffset + 5.5 +(4*10), yoffset + 6, 6, 14]]; go();