include <utils.scad>
-nook_th = 8; // xxx
+nook_th = 12.41 + 0.50;
nook_cnr_rad = 10;
case_th = 2.5;
ledge_w = 4;
-tape_th = 1.5;
+tape_th = 1.75;
tape_inside = 2.0;
gap = 0.5 * [1,1];
+tape_w = 15;
+
+test_pillar = 4;
+
// calculated
ledge_h = case_th;
spp7 = spp8 + case_th * [-1,-1];
spp11y = spp1[1] - tape_th;
-spp4y = 0.5 * (spp0[1] + spp8[1]);
+spp4y = 0.5 * (spp0[1] + spp7[1]);
spp3y = spp4y + tape_inside/2; spp5y = spp4y - tape_inside/2;
spp2y = spp3y + tape_th; spp6y = spp5y - tape_th;
SideTapeCutout1(spp11y, spp1[1] + 1);
}
-module Demo(){
- translate([0,0,-2]) color("red") SideMainProfile();
- translate([0,0,-2]) color("purple") TopMainProfile();
- difference(){
+module Demo(){ ////toplevel
+ translate([0,0,-2]) SideMainProfile();
+ translate([0,0,-2]) color("yellow") TopMainProfile();
+ color("red") difference(){
SideMainProfile();
SideTapeCutout();
}
- translate([0,0,0]) color("yellow") difference(){
+ translate([0,0,0]) color("purple") difference(){
TopMainProfile();
TopTapeCutout();
}
//%SideTapeCutout();
}
-Demo();
+module TestExtrude(){
+ difference(){
+ linextr_y_xz(-test_pillar, tape_w+test_pillar) children(0);
+ linextr_y_xz( 0, tape_w ) children(1);
+ }
+}
+
+module TestSide(){ ////toplevel
+ TestExtrude() { SideMainProfile(); SideTapeCutout(); }
+}
+
+module TestTop(){ ////toplevel
+ TestExtrude() { TopMainProfile(); TopTapeCutout(); }
+}
+module TestTopPrint(){ ////toplevel
+ rotate([180,0,0]) TestTop();
+}