3 include <commitid.scad>
6 pxp6012_rad = 22.5 / 2 + 0.5;
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;
25 cube([50, wallthick, 42]);
28 translate([30, -1, 20])
30 cylinder(r = pxp6012_rad, h=10, $fn=60);
33 Commitid_BestCount([15,40]);
39 cube([50, wallthick, 50]);
42 cube([s1930_x_outer + s1930_around,
43 s1930_y_outer + s1930_around,
51 cube([s1930_x, s1930_y, 10], center=true);
53 cube([s1930_x_outer, s1930_y_outer, 10], center=true);
60 ts_outer = [20,20,20];
61 ts_wall = [wallthick,wallthick,ts_floorceil];
70 m4_dnl Box_Part($1=transl_x,$2=transl_y, $3=rot_z,$4=mirror_xy)
71 m4_dnl $5=kind, $6=kindargs, $7=profile(profileargsargs))
72 m4_define(`Box_Part',`
73 translate([($1),($2)])
76 BoxPart_Extrude_$5($6, $7)') m4_dnl
80 m4_dnl BoxPart_Extrude_Linear(dist, `profile(...);');
81 m4_define(`BoxPart_Extrude_Linear',`
83 translate([0,0, -($1)])
84 linear_extrude(height= boxpart_d + ($1)) {
89 m4_dnl BoxPart_Extrude_Arc(x0_radius, swept_angle, `profile(...);')
90 m4_dnl arc starting at transl_x, transl_y, moving towards positive
91 m4_dnl y at first and then bending towards negative x, until
92 m4_dnl use negative x0_radius to inciate bending towards positive x
93 m4_dnl swept_angle is reached
94 m4_dnl x0_radius is the radius of the extruded part at x=0, not of the box
95 m4_define(`BoxPart_Extrude_Arc',`
96 translate([-($1),0,0])
99 linear_extrude(height=1000)
101 mirror([($1)<0, 0,0])
102 FArcSegment_mask($2);
103 rotate_extrude(convexity=10, $fs=1, $fn=36)
104 mirror([($1)<0, 0,0])
105 translate([+($1),0,0]){
111 ts_xbox_lin = ts_xbox - ts_cnrrad*2;
112 ts_ybox_lin = ts_ybox - ts_cnrrad*2;
114 m4_dnl TestSealDoBoxShape(`profile(profileargs)');
115 m4_define(`TestSealDoBoxShape',`
116 Box_Part(0, ts_cnrrad, 0,0, Linear,`ts_ybox_lin', `$1' )
117 Box_Part(0, ts_ybox-ts_cnrrad, 0,0, Arc,`-ts_cnrrad,90' , `$1' )
118 Box_Part(ts_cnrrad, ts_ybox, -90,0, Linear,`ts_xbox_lin', `$1' )
119 Box_Part(ts_xbox-ts_cnrrad, ts_ybox, -90,0, Arc,`-ts_cnrrad,90' , `$1' )
120 Box_Part(ts_xbox, ts_ybox-ts_cnrrad, -180,0, Linear,`ts_ybox_lin', `$1' )
121 Box_Part(ts_xbox, ts_cnrrad, -180,0, Arc,`-ts_cnrrad,90' , `$1' )
122 Box_Part(ts_xbox-ts_cnrrad, 0, -270,0, Linear,`ts_xbox_lin', `$1' )
123 Box_Part(ts_cnrrad, 0, -270,0, Arc,`-ts_cnrrad,90' , `$1' )
128 module TestSealWallProfile(){
129 z = ts_zbox - ts_innertube - wallthick/2;
130 translate([0, -0.1]) square([wallthick, z]);
131 translate([wallthick/2, z]) circle(r = wallthick/2, $fn=20);
134 module TestSealBox(){
135 TestSealDoBoxShape(`TestSealWallProfile();');
139 //TestSealWallProfile();
141 //FArcSegment_mask(350);