3 include <commitid.scad>
6 pxp6012_rad = 22.5 / 2 + 0.5; // make circular hole this size in outer wall
7 pxp6012_rad_outer = 32.0 / 2 - 0.5;
11 s1930_y_outer = 36.4 + 0.2;
12 s1930_x_outer = 27.6 + 0.2;
20 // origin is at centre on outer face wall
21 // outside is towards positive x
22 // mounting is vertical
23 module S1930_Positive(){
24 d = s1930_recess + s1930_behind;
25 translate([-d/2, 0,0])
27 s1930_x_outer + s1930_around,
28 s1930_y_outer + s1930_around], center=true);
30 module S1930_Negative(){
31 cube([60, s1930_x, s1930_y],
34 cube([s1930_recess*2+2, s1930_x_outer, s1930_y_outer],
38 module TestWall(){ ////toplevel
39 sw_ctr = [25, wallthick, 25];
44 cube([50, wallthick, 42]);
47 translate([30, -1, 20])
49 cylinder(r = pxp6012_rad, h=10, $fn=60);
52 Commitid_BestCount([15,40]);
58 cube([50, wallthick, 50]);
75 $sealingbox_wallth = wallthick;
76 $sealingbox_floorth = 2.5;
77 $sealingbox_ceilth = 2.5;
78 $sealingbox_xbox = totx_outer;
79 $sealingbox_ybox = toty_outer;
80 $sealingbox_zbox = totz_inner;
82 include <sealing-box.scad>
84 module TestSealBox(){ ////toplevel
86 ts_cidoff = ($sealingbox_cnrrad * (1-.7) + wallthick * .8) * [1,1];
88 Commitid_BestCount([totx_outer,toty_outer] - 2*ts_cidoff);
91 module TestSealLid(){ ////toplevel
95 translate([totx_outer * .75, toty_outer/2, 0])
98 translate([-wallthick + $sealingbox_cnrrad*.5,
99 $sealingbox_cnrrad*.5 - wallthick,
100 totz_inner + $sealingbox_ceilth])
101 Commitid_BestCount([totx_outer * .75 - 2.5 - ($sealingbox_cnrrad*.5),
102 toty_outer - ($sealingbox_cnrrad*.5 - wallthick)*2]);
106 module TestSealLidPrint(){ ////toplevel
107 rotate([180,0,0]) TestSealLid();
110 module ProfileDemos(){ ////toplevel
111 SealingBox_WallProfile();
112 color("blue") SealingBox_FloorProfile();
113 SealingBox_LidProfile();
114 color("blue") SealingBox_CeilProfile();
115 color("red") translate([-5,0]) square([1,totz_inner]);
122 //FArcSegment_mask(350);