From 065ec0a430da6c62cbd6d06b3de822e8a6751425 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 24 Feb 2020 11:18:34 +0000 Subject: [PATCH] Corrected nut placement --- vitamins/sk_bracket.scad | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/vitamins/sk_bracket.scad b/vitamins/sk_bracket.scad index 589e6d9..ddf1884 100644 --- a/vitamins/sk_bracket.scad +++ b/vitamins/sk_bracket.scad @@ -109,19 +109,16 @@ module sk_bracket_assembly(type, part_thickness, screw_type = M5_cap_screw, nut_ nut_washer_type = nut_washer(nut_type); nut_washer_thickness = nut_washer_type ? washer_thickness(nut_washer_type) : 0; - nut_offset = sk_base_height(type) + part_thickness + nut_thickness(nut_type) + nut_washer_thickness; - screw_length = screw_longer_than(nut_offset + screw_washer_thickness); + nut_offset = sk_base_height(type) + part_thickness; + screw_length = screw_longer_than(nut_offset + screw_washer_thickness + nut_washer_thickness + nut_thickness(nut_type)); sk_bracket_hole_positions(type) { screw_and_washer(screw_type, screw_length); translate_z(-nut_offset) - if(nut_type == M5_sliding_t_nut) - translate_z(nut_thickness(nut_type)) - vflip() - sliding_t_nut(nut_type); - else - nut(nut_type) - washer(nut_washer(nut_type)); + vflip() + if(nut_type == M5_sliding_t_nut) + sliding_t_nut(nut_type); + else + nut_and_washer(nut_type); } } -