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;
79 $sealingbox_xbox = totx_outer;
80 $sealingbox_ybox = toty_outer;
81 $sealingbox_zbox = totz_inner;
83 module TestSealBox(){ ////toplevel
85 ts_cidoff = ($sealingbox_cnrrad * (1-.7) + wallthick * .8) * [1,1];
87 Commitid_BestCount([totx_outer,toty_outer] - 2*ts_cidoff);
90 module TestSealLid(){ ////toplevel
94 translate([totx_outer * .75, toty_outer/2, 0])
97 translate([-wallthick + $sealingbox_cnrrad*.5,
98 $sealingbox_cnrrad*.5 - wallthick,
99 totz_inner + $sealingbox_ceilth])
100 Commitid_BestCount([totx_outer * .75 - 2.5 - ($sealingbox_cnrrad*.5),
101 toty_outer - ($sealingbox_cnrrad*.5 - wallthick)*2]);
105 module TestSealLidPrint(){ ////toplevel
106 rotate([180,0,0]) TestSealLid();
109 module ProfileDemos(){ ////toplevel
110 SealingBox_WallProfile();
111 color("blue") SealingBox_FloorProfile();
112 SealingBox_LidProfile();
113 color("blue") SealingBox_CeilProfile();
114 color("red") translate([-5,0]) square([1,totz_inner]);
121 //FArcSegment_mask(350);