Renamed sheet_thickness to part_thickness.

This commit is contained in:
Martin Budden 2020-02-23 22:34:59 +00:00
parent 581c2f8a96
commit d066648a76
2 changed files with 5 additions and 5 deletions

View File

@ -23,12 +23,12 @@ include <../vitamins/scs_bearing_blocks.scad>
module scs_bearing_blocks()
layout([for(s = scs_bearing_blocks) 2 * scs_size(s)[0]]) {
sheet_thickness = 5;
scs_bearing_block_assembly(scs_bearing_blocks[$i], sheet_thickness);
part_thickness = 5;
scs_bearing_block_assembly(scs_bearing_blocks[$i], part_thickness);
if($i > 0) // skip $i==0, since no SCS6LUU long variant to match SCS6UU
translate([0, 60])
scs_bearing_block_assembly(scs_bearing_blocks_long[$i - 1], sheet_thickness);
scs_bearing_block_assembly(scs_bearing_blocks_long[$i - 1], part_thickness);
}
if($preview)

View File

@ -133,7 +133,7 @@ module scs_bearing_block_hole_positions(type) {
children();
}
module scs_bearing_block_assembly(type, sheet_thickness, screw_type, nut_type) { //! Assembly with screws and nuts in place
module scs_bearing_block_assembly(type, part_thickness, screw_type, nut_type) { //! Assembly with screws and nuts in place
scs_bearing_block(type);
@ -143,7 +143,7 @@ module scs_bearing_block_assembly(type, sheet_thickness, screw_type, nut_type) {
washer_thickness = washer_type ? washer_thickness(washer_type) : 0;
G = scs_block_side_height(type);
nut_offset = G + sheet_thickness + nut_thickness(nut_type) + washer_thickness;
nut_offset = G + part_thickness + nut_thickness(nut_type) + washer_thickness;
screw_length = screw_longer_than(nut_offset);
scs_bearing_block_hole_positions(type) {