From d3001e7da08d5967dd49bc67464ece6f69f6cab4 Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 20 Feb 2022 02:11:18 -0500 Subject: [PATCH] missing $ --- customizer.scad | 34 +++++++++++++++++----------------- src/functions.scad | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/customizer.scad b/customizer.scad index 0774315..c179100 100644 --- a/customizer.scad +++ b/customizer.scad @@ -835,7 +835,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -1236,7 +1236,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -1315,7 +1315,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -2258,7 +2258,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3082,7 +3082,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3272,7 +3272,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3383,7 +3383,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3458,7 +3458,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3579,7 +3579,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3654,7 +3654,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3793,7 +3793,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -3938,7 +3938,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -4013,7 +4013,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -4181,7 +4181,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -4256,7 +4256,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -4662,7 +4662,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps @@ -4852,7 +4852,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps diff --git a/src/functions.scad b/src/functions.scad index e0de3e3..77028e8 100644 --- a/src/functions.scad +++ b/src/functions.scad @@ -33,7 +33,7 @@ function top_total_key_height() = $bottom_key_height + ($unit * ($key_height - 1 function side_tilt(column) = asin($unit * column / $double_sculpt_radius); // tan of 0 is 0, division by 0 is nan, so we have to guard -function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - (unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; +function extra_side_tilt_height(column) = side_tilt(column) ? ($double_sculpt_radius - ($unit * abs(column)) / tan(abs(side_tilt(column)))) : 0; // (I think) extra length of the side of the keycap due to the keytop being tilted. // necessary for calculating flat sided keycaps