1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-29 02:00:12 +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

@@ -122,9 +122,7 @@ assembly(str("fixing_block_M", 20 * screw_radius(screw))) {
module fastened_fixing_block_assembly(thickness, screw = def_screw, screw2 = undef, thickness2 = undef, show_block = true, star_washers = true) { //! Assembly with fasteners in place
module fb_screw(screw, thickness) {
washer = screw_washer(screw);
insert = screw_insert(screw);
screw_length = screw_longer_than((star_washers ? 2 : 1) * washer_thickness(washer) + thickness + insert_length(insert));
screw_length = screw_length(screw, thickness, star_washers ? 2 : 1, true, longer = true);
if(thickness)
translate_z(thickness)