Skip to content

Commit

Permalink
Tweak hex-spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
tshort committed Mar 11, 2017
1 parent 2e2d55f commit 89d5a74
Show file tree
Hide file tree
Showing 14 changed files with 1,679,970 additions and 14 deletions.
1,558 changes: 1,558 additions & 0 deletions fulmer.cjl.txt

Large diffs are not rendered by default.

1,558 changes: 1,558 additions & 0 deletions fulmer.clj

Large diffs are not rendered by default.

787,509 changes: 787,509 additions & 0 deletions repl.gcode

Large diffs are not rendered by default.

Binary file added repl.makerbot
Binary file not shown.
28,693 changes: 28,693 additions & 0 deletions repl.scad

Large diffs are not rendered by default.

50,794 changes: 50,794 additions & 0 deletions repl.stl

Large diffs are not rendered by default.

Binary file added repl.x3g
Binary file not shown.
25 changes: 11 additions & 14 deletions src/dactyl_keyboard/dactyl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
(on-wall-place 0 20))))


(defn hex-spacer [column row radius]
(defn hex-spacer [column row radius height]
(let [position (key-position column row [0 0 0])
column-offset (/ mount-width 2)
row-offset (/ mount-height 2)
Expand All @@ -573,14 +573,10 @@
shift-down (and (not (or shift-right shift-left)) (= row lastrow))
is-vertical (or shift-left shift-right)
col-angle (+ (* β (- centercol column)) (/ π 12))
row-angle (* α (- row centerrow))
height 10]
row-angle (* α (- row centerrow))]
(->> (cylinder radius height)
(rotate (if is-vertical (/ π 6) 0) [0 0 1])
(translate [(first position) (second position) (/ height 2)])
; (translate [(* (if shift-right 1 (if shift-left -1 0)) (- column-offset (* wall-offset (Math/abs (Math/sin col-angle)))))
; (* (if shift-up 1 (if shift-down -1 0)) (- row-offset (* wall-offset (Math/abs (Math/sin row-angle)))))
; 0])
(translate [(* (if shift-right 1 (if shift-left -1 0)) column-offset)
(* (if shift-up 1 (if shift-down -1 0)) row-offset)
0])
Expand All @@ -589,16 +585,17 @@
0])
(with-fn 6))))

(defn hex-spacer-shapes [radius]
(union (hex-spacer 0 0 radius)
(hex-spacer 0 cornerrow radius)
(hex-spacer 3 lastrow radius)
(hex-spacer 2 0 radius)
(hex-spacer lastcol (dec cornerrow) radius)
(defn hex-spacer-shapes [radius height]
(union (hex-spacer 0 0 radius height)
(hex-spacer 0 cornerrow radius height)
(hex-spacer 3 lastrow radius height)
(hex-spacer 2 0 radius height)
(hex-spacer lastcol (dec cornerrow) radius height)
))
(def hex-spacer-height 10)
(def hex-spacer-radius (/ 5.42 2))
(def hex-spacer-holes (hex-spacer-shapes hex-spacer-radius))
(def hex-spacer-outers (hex-spacer-shapes (+ hex-spacer-radius 1.6)))
(def hex-spacer-holes (hex-spacer-shapes hex-spacer-radius hex-spacer-height))
(def hex-spacer-outers (hex-spacer-shapes (+ hex-spacer-radius 1.6) (+ hex-spacer-height 1.6)))


;; teensy info
Expand Down
13 changes: 13 additions & 0 deletions t.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
minkowski()
{
circle(1);
for(i=[0:5])
{
rotate([0,0,360/5 * i])
hull()
{
translate([20,0,0]) square(10);
square(2);
}
}
}
6 changes: 6 additions & 0 deletions tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /[email protected]/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.8 //
Loading

0 comments on commit 89d5a74

Please sign in to comment.