]> git.armaanb.net Git - atreides.git/commitdiff
Remove extra whitespace around variables
authorArmaan Bhojwani <me@armaanb.net>
Fri, 22 Jan 2021 16:24:13 +0000 (11:24 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 22 Jan 2021 16:24:13 +0000 (11:24 -0500)
case.scad

index 2c9a9253f070c56e2ea7c24975d2b32a5cbaa3b8..17d493c06908ec17621f85cfb637bf5fbe9168f0 100644 (file)
--- 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);