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 $sealingbox_wallth = wallthick;
77 $sealingbox_floorth = wallthick;
78 $sealingbox_ceilth = wallthick;
80 module TestSealBox(){ ////toplevel
81 $sealingbox_xbox = ts_totx;
82 $sealingbox_ybox = ts_toty;
83 $sealingbox_zbox = ts_totz_inner;
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_xbox = ts_totx;
93 $sealingbox_ybox = ts_toty;
94 $sealingbox_zbox = ts_totz_inner;
99 translate([ts_totx * .75, ts_toty/2, 0])
100 cylinder(h=100, r=5);
102 translate([-wallthick + $sealingbox_cnrrad*.5,
103 $sealingbox_cnrrad*.5 - wallthick,
104 ts_totz_inner + $sealingbox_ceilth])
105 Commitid_BestCount([ts_totx * .75 - 2.5 - ($sealingbox_cnrrad*.5),
106 ts_toty - ($sealingbox_cnrrad*.5 - wallthick)*2]);
110 module TestSealLidPrint(){ ////toplevel
111 rotate([180,0,0]) TestSealLid();
114 module ProfileDemos(){ ////toplevel
115 $sealingbox_xbox = ts_totx;
116 $sealingbox_ybox = ts_toty;
117 $sealingbox_zbox = ts_totz_inner;
119 SealingBox_WallProfile();
120 color("blue") SealingBox_FloorProfile();
121 SealingBox_LidProfile();
122 color("blue") SealingBox_CeilProfile();
123 color("red") translate([-5,0]) square([1,ts_totz_inner]);
130 //FArcSegment_mask(350);