1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-09 14:40:44 +02:00

Added screw_length() to calculuate screw lengths includin washers, inserts and nuts.

This commit is contained in:
Chris Palmer
2021-01-15 18:12:37 +00:00
parent c33876530e
commit 93b260b7b9
28 changed files with 62 additions and 88 deletions

View File

@@ -71,15 +71,13 @@ use <nut.scad>
use <washer.scad>
module ssr_assembly(type, screw, thickness) { //! Assembly with fasteners in place
nut = screw_nut(screw);
washer = screw_washer(screw);
screw_length = screw_longer_than(2 * washer_thickness(washer) + thickness + ssr_base_t(type) + nut_thickness(nut, true));
screw_length = screw_length(screw, thickness + ssr_base_t(type), 2, nyloc = true);
ssr(type);
ssr_hole_positions(type) {
translate_z(ssr_base_t(type))
nut_and_washer(nut, true);
nut_and_washer(screw_nut(screw), true);
translate_z(-thickness)
vflip()