diff --git a/src/dactyl_keyboard/dactyl.clj b/src/dactyl_keyboard/dactyl.clj index fc6fa4e..693df2a 100644 --- a/src/dactyl_keyboard/dactyl.clj +++ b/src/dactyl_keyboard/dactyl.clj @@ -791,14 +791,19 @@ (spit "things/right-plate.scad" (write-scad - (cut + (extrude-linear + {:height 2.6 :center false} + (project (translate [0 0 -0.1] (difference (union case-walls ;teensy-holder ; rj9-holder + + + screw-insert-outers) (translate [0 0 -10] screw-insert-screw-holes)) - )))) + ))))) ;(spit "things/test.scad" ; (write-scad diff --git a/test/dactyl_cave/core_test.clj b/test/dactyl_cave/core_test.clj index 0a72886..48953ab 100644 --- a/test/dactyl_cave/core_test.clj +++ b/test/dactyl_cave/core_test.clj @@ -12,5 +12,48 @@ (spit "things/right-plate-polygon.scad" (write-scad -(polygon [[-83 0] [-81.7 11.88] [-80.76 21.6] [-74.64 41] [-71.67 45.4] [-73.5 47.3] [-70.74 52.21] [-57.39 62.9]]) +(->> (polygon [[-83 0] [-81.7 11.88] [-80.76 21.6] [-74.64 41] [-71.67 45.4] [-73.5 47.3] [-70.74 52.21] [-57.39 62.9] +[-58 62.5] +[-25.4 62.9] +[-24.4 66.14] +[-7.46 66.14] +[-3.26 62.7] +[12.67 62.68] +[16.9 50.5] +[53.7 51.4] +[58.6 47.5] +[57.3 19.7] +[53.88 17.9] +[54.4 14.34] +[55.9 13.45] +[55.47 -2.28] +[55.76 -26] +[57.56 -43.81] +[57.78 -48.85] +[52.3 -53.9] +[19 -54.5] +[15.7 -64.9] +[-16.4 -65.46] +[-17.3 -67.24] +[-31.8 -76.1] +[-40.7 -86.2] +[-40.5 -92.76] +[-45.44 -99] +[-53.22 -103.1] +[-58.9 -103.1] +[-72 -91.6] +[-78.5 -88.6] +[-90.5 -78.8] +[-90.5 -73.18] +[-80.97 -58.64] +[-81.4 -57.42] +[-74.47 -47.6] +[-72.2 -44.5] +]) +(extrude-linear {:height 2.6 :twist 0 :convexity 0}) +) )) + +;(->> (polygon [[6 6] [6 -6] [-6 -6] [-6 6]]) +; (extrude-linear {:height 0.1 :twist 0 :convexity 0}) +; (translate [0 0 12])) diff --git a/things/right-plate-polygon.stl b/things/right-plate-polygon.stl new file mode 100644 index 0000000..5a3b0be Binary files /dev/null and b/things/right-plate-polygon.stl differ diff --git a/things/right-plate.stl b/things/right-plate.stl new file mode 100644 index 0000000..4d8cac1 Binary files /dev/null and b/things/right-plate.stl differ