summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
23b755d)
Minimal support for alternative cap models.
base_height = AUTO_CALCULATE,
wall_thickness = AUTO_CALCULATE,
outer_d = AUTO_CALCULATE,
base_height = AUTO_CALCULATE,
wall_thickness = AUTO_CALCULATE,
outer_d = AUTO_CALCULATE,
+ dome_h = AUTO_CALCULATE,
}
if (keychain) cap_keychain_holes ();
}
if (keychain) cap_keychain_holes ();
- // hollow it out (make parametric later, this is pretty ugly now, but calc seems to be ok for RaleighAcorn)
+ // hollow the cap out (make parametric later, this is pretty ugly now, but calc seems to be ok for RaleighAcorn)
diam_to_height_ratio = 3.2;
diam_to_height_ratio = 3.2;
- dome_h = outer_d / diam_to_height_ratio - thread_height;
+ dome_h = (dome_h == AUTO_CALCULATE) ? outer_d / diam_to_height_ratio - thread_height : dome_h;
echo ("dome_h = ", dome_h);
difference () {
translate ([0, 0, thread_height-0.01]) dome (d=outer_d, h=dome_h);
echo ("dome_h = ", dome_h);
difference () {
translate ([0, 0, thread_height-0.01]) dome (d=outer_d, h=dome_h);