psu_usba_v_space_w = 1.7;
psu_usba_v_space_l = 3.0;
+psu_test_ceil = 2.5;
+
// ----- calculated -----
psu_z = NutBox_h_base(psu_board_nutbox);
for (x= [-1,+1] * psu_usba_v_apart/2) {
translate([x, -psu_usba_v_from_edge ]) {
hull(){
- for (y= [-1,+1] * (psu_usba_v_space_l - psu_usba_v_space_w)) {
+ for (y= [-1,+1] * 0.5 * (psu_usba_v_space_l - psu_usba_v_space_w)) {
translate([0,y])
circle(r= psu_usba_v_space_w);
}
mirror([1,0])
translate([0,-20]) square(40);
}
+ linextr(-10,10) {
+ rotate(-90)
+ translate([0, -psu_board_nutbox[0]/2])
+ PsuUsbAVSpacePlan();
+ }
}
}
}
}
-module PsuMountDemo(ceil = 2.5) { ////toplevel
+module PsuMountDemo() { ////toplevel
+ ceil = psu_test_ceil;
+
translate([0, psu_y, psu_z]) {
difference(){
PsuMountPositive();
PsuLedWindowsPlan();
}
%PsuMountNegative();
+
color("yellow") translate([0,0, -psu_z - ceil])
linear_extrude(height=0.4, convexity=10)
PsuLedWindowsPlan();
+ color("blue") translate([0,0, -psu_z - ceil])
+ linear_extrude(height=0.4, convexity=10)
+ PsuLedLegendsPlan();
+
translate([0, psu_board_nutbox_y, 10])
rotate([180,0,0])
rotate([0,0,-90])
}
}
-module PsuMountTest(ceil = 2.5) { ////toplevel
+module PsuMountTest() { ////toplevel
+ ceil = psu_test_ceil;
$fs = 0.1;
$fa = 3;
difference(){
linextr_x_yz(-(psu_sz[0]/2 + 5),
+(psu_sz[0]/2 + 5)){
difference(){
- rectfromto([-ceil, -ceil], [psu_sz[1] + 10, psu_z + 10]);
- rectfromto([0,0], 400*[1,1]);
+ rectfromto([0, -ceil], [psu_sz[1] + 10, psu_z + 10]);
+ rectfromto([ceil,0], 400*[1,1]);
}
}
translate([0, psu_y, psu_z]) {
}
}
}
+
+psu_multicolour_gap = 0.075;
+psu_initial_layer_thick = 0.400;
+psu_initial_layer_width = 0.750;
+psu_window_ledge = 0.50; // each side
+
+module PsuMountTestFullLayerFrame(ix) {
+ sz = psu_sz*2 + [1,1]*psu_initial_layer_width*(3+ix);
+ translate([0, psu_y]) difference(){
+ square(center=true, sz + psu_multicolour_gap*2*[1,1]);
+ square(center=true, sz);
+ }
+}
+
+
+module PsuMountTestFullMain() { ////toplevel
+ ceil = psu_test_ceil;
+
+ linextr(0, psu_initial_layer_thick)
+ PsuMountTestFullLayerFrame(2);
+
+ difference(){
+ translate([0,0, ceil])
+ PsuMountTest();
+
+ translate([0, psu_y, 0]) {
+ linextr(-1, psu_initial_layer_thick) {
+ offset(delta=psu_window_ledge + psu_multicolour_gap)
+ PsuLedWindowsPlan();
+ offset(delta=psu_multicolour_gap)
+ PsuLedLegendsPlan();
+ }
+ }
+ }
+}
+
+module PsuMountTestFullOneLayer(ix) {
+ linextr(0, psu_initial_layer_thick) {
+ PsuMountTestFullLayerFrame(ix);
+ translate([0, psu_y]) children();
+ }
+}
+
+module PsuMountTestFullText() { ////toplevel
+ PsuMountTestFullOneLayer(0)
+ offset(delta=psu_window_ledge)
+ PsuLedLegendsPlan();
+}
+module PsuMountTestFullWindows() { ////toplevel
+ PsuMountTestFullOneLayer(1)
+ PsuLedWindowsPlan();
+}
+
+module PsuMountTestFullDemo() { ////toplevel
+ color("blue") PsuMountTestFullMain();
+ color("yellow") PsuMountTestFullText();
+ %PsuMountTestFullWindows();
+}