summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad61
1 files changed, 31 insertions, 30 deletions
diff --git a/another.scad b/another.scad
index 302e314..872ff33 100644
--- a/another.scad
+++ b/another.scad
@@ -63,2 +63,4 @@ module the_extruder(
63) { 63) {
64 fnd = 2*PI; fnr = 2*fnd;
65
64 lever_shell = mount_screwhead_h+0.5; 66 lever_shell = mount_screwhead_h+0.5;
@@ -88,6 +90,6 @@ module the_extruder(
88 rr = depth+hh; 90 rr = depth+hh;
89 translate([0,0,hh]) sphere(r=rr,$fn=2*PI*rr); 91 translate([0,0,hh]) sphere(r=rr,$fn=fnr*rr);
90 }else if(r) { 92 }else if(r) {
91 hh=sqrt(pow(r,2)-pow(d,2)/4); 93 hh=sqrt(pow(r,2)-pow(d,2)/4);
92 translate([0,0,hh]) sphere(r=r,$fn=2*PI*r); 94 translate([0,0,hh]) sphere(r=r,$fn=fnr*r);
93 } 95 }
@@ -160,3 +162,3 @@ module the_extruder(
160 translate([0,0,lever_thickness/2-mount_screwhead_h]) 162 translate([0,0,lever_thickness/2-mount_screwhead_h])
161 cylinder(d=mount_screwhead_d,h=mount_screwhead_h+1,$fn=2*PI*mount_screwhead_d); 163 cylinder(d=mount_screwhead_d,h=mount_screwhead_h+1,$fn=fnd*mount_screwhead_d);
162 } 164 }
@@ -164,3 +166,3 @@ module the_extruder(
164 translate([mount_d/2,0,0]) 166 translate([mount_d/2,0,0])
165 cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=2*PI*mount_screw_d); 167 cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=fnd*mount_screw_d);
166 168
@@ -172,4 +174,4 @@ module the_extruder(
172 difference() { 174 difference() {
173 cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=2*PI*spring_d); 175 cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=fnd*(spring_d+spring_d_clearance));
174 sphere(d=spring_d*3/4,$fn=PI*spring_d); 176 sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
175 } 177 }
@@ -188,3 +190,3 @@ module the_extruder(
188 union() { 190 union() {
189 cylinder(d=gearbox_d,h=body_h,$fn=2*PI*gearbox_d); 191 cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d);
190 // finger and spring support 192 // finger and spring support
@@ -196,3 +198,3 @@ module the_extruder(
196 rotate([0,90,0]) 198 rotate([0,90,0])
197 cylinder(d=max(lever_thickness,spring_d+spring_d_clearance+2*extrusion_width),h=fsw,$fn=2*PI*lever_thickness); 199 cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness);
198 hh=body_h-ls_z; 200 hh=body_h-ls_z;
@@ -213,3 +215,3 @@ module the_extruder(
213 cylinder(d=st_nut_d,h=st_nut_h,$fn=6); 215 cylinder(d=st_nut_d,h=st_nut_h,$fn=6);
214 translate([0,0,-1]) cylinder(d=st_screw_d,h=fsw+2,$fn=st_screw_d*PI*2); 216 translate([0,0,-1]) cylinder(d=st_screw_d,h=fsw+2,$fn=fnd*st_screw_d);
215 bigd = spring_d+spring_d_clearance; 217 bigd = spring_d+spring_d_clearance;
@@ -218,5 +220,5 @@ module the_extruder(
218 cylinder(d1=st_screw_d,d2=bigd, 220 cylinder(d1=st_screw_d,d2=bigd,
219 h=hf+epsilon, $fn=bigd*PI*2 ); 221 h=hf+epsilon, $fn=fnd*bigd);
220 translate([0,0,st_shell+st_nut_h+st_shell+hf-epsilon]) 222 translate([0,0,st_shell+st_nut_h+st_shell+hf-epsilon])
221 cylinder(d=bigd,h=fsw+1,$fn=bigd*PI*2); 223 cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
222 } 224 }
@@ -235,3 +237,3 @@ module the_extruder(
235 translate([0,0,-1]) 237 translate([0,0,-1])
236 cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=2*PI*protrusion_d); 238 cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h));
237 // mount screw holes 239 // mount screw holes
@@ -242,5 +244,5 @@ module the_extruder(
242 h=mount_screw_l-mounthole_depth/2-layer_height+1, 244 h=mount_screw_l-mounthole_depth/2-layer_height+1,
243 $fn=2*PI*mount_screw_d); 245 $fn=fnd*(mount_screw_d+mount_screw_d_tolerance));
244 translate([0,0,mount_screw_l-mounthole_depth/2]) 246 translate([0,0,mount_screw_l-mounthole_depth/2])
245 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=2*PI*mount_screwhead_d); 247 cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);
246 }//for 248 }//for
@@ -253,3 +255,3 @@ module the_extruder(
253 pushfit(pf); 255 pushfit(pf);
254 cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=2*PI*filament_guide_d); 256 cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=fnd*filament_guide_d);
255 translate([0,-filament_guide_d/2/sqrt(2),0]) 257 translate([0,-filament_guide_d/2/sqrt(2),0])
@@ -259,3 +261,3 @@ module the_extruder(
259 // pulley 261 // pulley
260 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); 262 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance));
261 // leverspace 263 // leverspace
@@ -264,3 +266,3 @@ module the_extruder(
264 translate([x,0,ls_z-ls_h/2]) 266 translate([x,0,ls_z-ls_h/2])
265 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=2*PI*idler_d); 267 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance));
266 268
@@ -287,5 +289,4 @@ module the_extruder(
287 rotate([0,-90,0]) difference() { 289 rotate([0,-90,0]) difference() {
288 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=PI*spring_d); 290 cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance));
289 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=PI*spring_d); 291 translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
290 }
291 } 292 }
@@ -297,4 +298,4 @@ module the_extruder(
297 translate([0,0,ls_z-ls_h/2-epsilon]) 298 translate([0,0,ls_z-ls_h/2-epsilon])
298 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=2*PI*gearbox_d); 299 cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d);
299 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); 300 cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance));
300 } 301 }
@@ -322,8 +323,8 @@ module the_extruder(
322 union() { 323 union() {
323 cylinder(d1=smalld,d2=bigd,h=hf,$fn=bigd*PI*2); 324 cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
324 translate([0,0,hf-epsilon]) 325 translate([0,0,hf-epsilon])
325 cylinder(d=bigd,h=hf*2,$fn=bigd*PI*2); 326 cylinder(d=bigd,h=hf*2,$fn=fnd*bigd);
326 } 327 }
327 translate([0,0,-epsilon]) 328 translate([0,0,-epsilon])
328 cylinder(d=st_screw_d,h=2*hf+epsilon,$fn=st_screw_d*PI*2); 329 cylinder(d=st_screw_d,h=2*hf+epsilon,$fn=fnd*st_screw_d);
329 } 330 }
@@ -336,3 +337,3 @@ module the_extruder(
336 difference() { 337 difference() {
337 cylinder(d=pulley_d,h=knob_bore_l,$fn=pulley_d*PI*2); 338 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
338 translate([0,0,-1]) difference() { 339 translate([0,0,-1]) difference() {
@@ -346,7 +347,7 @@ module the_extruder(
346 union() { 347 union() {
347 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=PI*gearbox_d*2); 348 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d);
348 translate([0,0,ch]) 349 translate([0,0,ch])
349 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=PI*gearbox_d*2); 350 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d);
350 translate([0,0,knob_h-ch]) 351 translate([0,0,knob_h-ch])
351 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=PI*gearbox_d*2); 352 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d);
352 } 353 }
@@ -354,3 +355,3 @@ module the_extruder(
354 translate([0,gearbox_d/2,-1]) 355 translate([0,gearbox_d/2,-1])
355 cylinder(d=knob_indent_d,h=knob_h+2,$fn=knob_indent_d*PI*2); 356 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
356 } 357 }