summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-01-22 11:24:13 -0500
committerArmaan Bhojwani <me@armaanb.net>2021-01-22 11:24:13 -0500
commitff2fd77bd330abf666df4dd01338d9daa91b747f (patch)
tree5d471cb7e5a0f18c9e75ca84b6ebd1659e7efcb3
parent7737e770ba3c6a62e3b6a5ef9e38e9cdbe05e16f (diff)
downloadatreides-ff2fd77bd330abf666df4dd01338d9daa91b747f.tar.gz
Remove extra whitespace around variables
-rw-r--r--case.scad15
1 files changed, 7 insertions, 8 deletions
diff --git a/case.scad b/case.scad
index 2c9a925..17d493c 100644
--- a/case.scad
+++ b/case.scad
@@ -1,12 +1,11 @@
-// -*- mode: c -*-
/* All distances are in mm. */
/* set output quality */
$fn = 50;
/* Distance between key centers. */
-column_spacing = 19;
-row_spacing = column_spacing;
+column_spacing = 19;
+row_spacing = column_spacing;
/* This number should exceed row_spacing and column_spacing. The
default gives a 1mm = (20mm - 19mm) gap between keycaps and cuts in
@@ -23,7 +22,7 @@ screw_hole_radius = 1.5;
/* Each screw hole is a hole in a "washer". How big these "washers"
should be depends on the material used: this parameter and the
`switch_hole_size` determine the spacer wall thickness. */
-washer_radius = 4 * screw_hole_radius;
+washer_radius = 4 * screw_hole_radius;
/* This constant allows tweaking the location of the screw holes near
the USB cable. Only useful with small `angle` values. Try the value
@@ -31,7 +30,7 @@ washer_radius = 4 * screw_hole_radius;
back_screw_hole_offset = 0;
/* Distance between halves. */
-hand_separation = 0;
+hand_separation = 10;
/* The approximate size of switch holes. Used to determine how
thick walls can be, i.e. how much room around each switch hole to
@@ -84,10 +83,10 @@ function rz_fun(p, angle, center) = [cos(angle) * (p[0] - center[0]) - sin(angle
module switch_hole(position, notches=use_notched_holes) {
/* Cherry MX switch hole with the center at `position`. Sizes come
from the ErgoDox design. */
- hole_size = 13.97;
- notch_width = 3.5001;
+ hole_size = 13.97;
+ notch_width = 3.5001;
notch_offset = 4.2545;
- notch_depth = 0.8128;
+ notch_depth = 0.8128;
translate(position) {
union() {
square([hole_size, hole_size], center=true);