3 include <commitid.scad>
5 include <sealing-box.scad>
7 pxp6012_rad = 22.5 / 2 + 0.5; // make circular hole this size in outer wall
8 pxp6012_rad_outer = 32.0 / 2 - 0.5;
12 s1930_y_outer = 36.4 + 0.2;
13 s1930_x_outer = 27.6 + 0.2;
21 // origin is at centre on outer face wall
22 // outside is towards positive x
23 // mounting is vertical
24 module S1930_Positive(){
25 d = s1930_recess + s1930_behind;
26 translate([-d/2, 0,0])
28 s1930_x_outer + s1930_around,
29 s1930_y_outer + s1930_around], center=true);
31 module S1930_Negative(){
32 cube([60, s1930_x, s1930_y],
35 cube([s1930_recess*2+2, s1930_x_outer, s1930_y_outer],
39 module TestWall(){ ////toplevel
40 sw_ctr = [25, wallthick, 25];
45 cube([50, wallthick, 42]);
48 translate([30, -1, 20])
50 cylinder(r = pxp6012_rad, h=10, $fn=60);
53 Commitid_BestCount([15,40]);
59 cube([50, wallthick, 50]);
76 ts_box_sz = [ts_totx, ts_toty, ts_totz_inner];
78 $sealingbox_wallth = wallthick;
79 $sealingbox_floorth = wallthick;
80 $sealingbox_ceilth = wallthick;
82 module TestSealBox(){ ////toplevel
83 $sealingbox_sz = ts_box_sz;
86 ts_cidoff = ($sealingbox_cnrrad * (1-.7) + wallthick * .8) * [1,1];
88 Commitid_BestCount([ts_totx,ts_toty] - 2*ts_cidoff);
91 module TestSealLid(){ ////toplevel
92 $sealingbox_sz = ts_box_sz;
97 translate([ts_totx * .75, ts_toty/2, 0])
100 translate([-wallthick + $sealingbox_cnrrad*.5,
101 $sealingbox_cnrrad*.5 - wallthick,
102 ts_totz_inner + $sealingbox_ceilth])
103 Commitid_BestCount([ts_totx * .75 - 2.5 - ($sealingbox_cnrrad*.5),
104 ts_toty - ($sealingbox_cnrrad*.5 - wallthick)*2]);
108 module TestSealLidPrint(){ ////toplevel
109 rotate([180,0,0]) TestSealLid();
112 module ProfileDemos(){ ////toplevel
113 $sealingbox_sz = ts_box_sz;
115 SealingBox_WallProfile();
116 color("blue") SealingBox_FloorProfile();
117 SealingBox_LidProfile();
118 color("blue") SealingBox_CeilProfile();
119 color("red") translate([-5,0]) square([1,ts_totz_inner]);
126 //FArcSegment_mask(350);