summaryrefslogtreecommitdiff
path: root/another.scad
Side-by-side diff
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad11
1 files changed, 6 insertions, 5 deletions
diff --git a/another.scad b/another.scad
index fcd179e..f01e765 100644
--- a/another.scad
+++ b/another.scad
@@ -61,22 +61,23 @@ module the_extruder(
st_nut_h_tolerance=.2,
st_nut_d_tolerance=.2,/* TODO: make it st_nut_w_tolerance */
st_screw_d_tolerance=.5,
st_split_w_tolerance = .3,
min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
min_xy_shell = 2*extrusion_width,
+ body_label = "another", body_label_thickness = 2*layer_height,
+
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
bridges = true,
debug = false,
- label = "another"
) {
fnd = 2*PI; fnr = 2*fnd;
function lu(m,k) = m[search([k],m)[0]][1];
pulley_d = lu(pulley,"d");
pulley_h = lu(pulley,"h");
teeth_elevation = lu(pulley,"fe");
filament_offset = lu(pulley,"g")+filament_d/2;
@@ -355,26 +356,26 @@ module the_extruder(
cube(size=[body_h-ls_z+1,st_split_w+st_split_w_tolerance,fsw+1]);
}//translate
translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon])
cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
}//mirror
}//translate
// label
- label_thickness = 2*layer_height;
- label_len = len(label);
- if(label_len) {
+ if(body_label) let(label=body_label,label_thickness=body_label_thickness) {
+ label_thickness = 2*layer_height;
+ label_len = len(label);
labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell];
translate([0,0,body_h-label_thickness])
linear_extrude(height=label_thickness+epsilon,convexity=64)
translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2])
mirror([left?0:1,0])
text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black");
- }//if(label_len)
+ }//if(body_label)
}//difference
}//body module
module springpad() {
smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell;
bigd = spring_d+spring_d_clearance/2;