-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);
+psu_frame_gap = 1.0;
+
+module PsuMountLayerFrame(bl, tr, ix) {
+ gap0 = [1,1] * (psu_frame_gap + psu_initial_layer_width*(ix+0));
+ gap1 = [1,1] * (psu_frame_gap + psu_initial_layer_width*(ix+1));
+ linextr(0, psu_initial_layer_thick) {
+ difference(){
+ rectfromto(bl-gap1, tr+gap1);
+ rectfromto(bl-gap0, tr+gap0);
+ }