From 581c2f8a968bf571641462e91ccfd9bbd61513d0 Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Sun, 23 Feb 2020 21:49:35 +0000 Subject: [PATCH] Used accessor functions internally. --- vitamins/scs_bearing_block.scad | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vitamins/scs_bearing_block.scad b/vitamins/scs_bearing_block.scad index ff65792..95a3888 100644 --- a/vitamins/scs_bearing_block.scad +++ b/vitamins/scs_bearing_block.scad @@ -44,17 +44,17 @@ module scs_bearing_block(type) { //! Draw the specified SCS bearing block vitamin(str("scs_bearing_block(", type[0], "): ", type[0], " bearing block")); T = type[1]; - h = type[2]; + h = scs_hole_offset(type); E = type[3]; - W = type[4]; + W = scs_size(type)[0]; assert(W == 2 * E, str("W or E wrong for scs_bearing_block", type[0])); - L = type[5]; - F = type[6]; - G = type[7]; - B = type[8]; - C = type[9]; + L = scs_size(type)[2]; + F = scs_block_center_height(type); + G = scs_block_side_height(type); + B = scs_screw_separation_x(type); + C = scs_screw_separation_z(type); K = type[10]; - S1 = type[11]; + S1 = scs_screw(type); S2 = type[12]; L1 = type[13];