Add changes for successful print

This commit is contained in:
omurovec 2022-02-06 13:29:31 -08:00
parent f9d4da9985
commit 77be3c8aed
10 changed files with 12670 additions and 14361 deletions

View File

@ -1,13 +1,14 @@
# Yet another Dactyl Manuform Spinoff # Yet another Dactyl Manuform Spinoff (Low Profile)
![Photo](https://i.redd.it/ljnm9ia2v0c71.jpg) ![Photo](https://preview.redd.it/icsa6rm04ag81.jpg?width=4032&format=pjpg&auto=webp&s=5b12a9a51c0e561ee80878b5fc81ad74a673ef75)
This repo is a re-implementation of the [Dactyl Manuform Tight](https://github.com/okke-formsma/dactyl-manuform-tight) in python, with a few of my own changes. This repo is a _fork of a_ re-implementation of the [Dactyl Manuform Tight](https://github.com/okke-formsma/dactyl-manuform-tight) in python, with a few of my own changes.
There are some hacks in here to get the border walls and thumb cluster to line up properly at the current tenting angle and key layout. There are some hacks in here to get the border walls and thumb cluster to line up properly at the current tenting angle and key layout.
I didn't build this script with the goal of making it easy to share and extend... so if you're using this repo as a starting point for your own dactyl build, good luck, and beware of some shard edges. I didn't build this script with the goal of making it easy to share and extend... so if you're using this repo as a starting point for your own dactyl build, good luck, and beware of some shard edges.
## Generating OpenSCAD Models ## Generating OpenSCAD Models
This script is tested against Python 3.8.0 This script is tested against Python 3.8.0
Intall dependencies with `pip install -r requirements.txt` Intall dependencies with `pip install -r requirements.txt`

View File

@ -34,8 +34,8 @@ extra_width = 3
mount_height = keyswitch_height mount_height = keyswitch_height
mount_width = keyswitch_width mount_width = keyswitch_width
# use 10 for faster prototyping, 15 for real # use 10 for faster prototyping, 15 for real
tenting_angle = 10.0 tenting_angle = 11.0
z_offset = 8.0 z_offset = 9.0
should_include_risers = False should_include_risers = False
@ -429,7 +429,7 @@ def get_riser_offset_delta(row_col, idx):
if row_col == [2, 4] and idx == square_idx_bl: if row_col == [2, 4] and idx == square_idx_bl:
return [2.5, 0] return [2.5, 0]
if row_col == [3, 2] and idx == square_idx_br: if row_col == [3, 2] and idx == square_idx_br:
return [-3.5, 0] return [-3.5, 1]
if row_col == [2, 1] and idx == square_idx_br: if row_col == [2, 1] and idx == square_idx_br:
return [-3, 0] return [-3, 0]
else: else:
@ -590,7 +590,7 @@ def post_test():
thumb_basic_postition = point_on_grid(num_rows_for_col(1), 1, 0, 0, 0) thumb_basic_postition = point_on_grid(num_rows_for_col(1), 1, 0, 0, 0)
thumb_offsets = [17, 5.3, -5] thumb_offsets = [16, 4.8, -2.5]
# thumb_offsets = [16, 7, -5] # thumb_offsets = [16, 7, -5]
thumb_position = [sum(x) for x in zip(thumb_basic_postition, thumb_offsets)] thumb_position = [sum(x) for x in zip(thumb_basic_postition, thumb_offsets)]
@ -607,11 +607,11 @@ def thumb_placer(rot, move):
thumb_r_placer = thumb_placer([14, -26, 12], [-17.4, -11.8, -4.2]) thumb_r_placer = thumb_placer([14, -26, 12], [-17.4, -11.8, -4.2])
thumb_m_placer = thumb_placer([10, -16, 20], [-35, -17, -11]) thumb_m_placer = thumb_placer([8, -17, 22], [-36, -17.6, -12])
thumb_l_placer = thumb_placer([6, -5, 35], [-54.8, -27.5, -15.5]) thumb_l_placer = thumb_placer([6, -5, 30], [-54, -26.5, -16])
thumb_bl_placer = thumb_placer([4, -10, 27], [-35.3, -38.2, -16]) thumb_bl_placer = thumb_placer([4, -10, 27], [-35.3, -38.2, -18])
thumb_br_placer = thumb_placer([4, -26, 18], [-15.8, -30.7, -9.6]) thumb_br_placer = thumb_placer([4, -26, 18], [-15.8, -30.7, -11.6])
thumb_placement_fns = [ thumb_placement_fns = [
thumb_r_placer, thumb_r_placer,
@ -1051,7 +1051,7 @@ def screw_insert_all_shapes(shape):
screw_insert(num_cols - 1, num_rows_for_col(num_cols - 1), shape, 6.8, 14.4), screw_insert(num_cols - 1, num_rows_for_col(num_cols - 1), shape, 6.8, 14.4),
screw_insert(0, 0, shape, -6.2, -6), screw_insert(0, 0, shape, -6.2, -6),
screw_insert(1, max_num_rows + 1, shape, -9.8, 3.4), screw_insert(1, max_num_rows + 1, shape, -9.8, 3.4),
screw_insert(0, max_num_rows - 1, shape, -17.4, 1.7), screw_insert(0, max_num_rows - 1, shape, -17.4, -2),
) )
@ -1098,13 +1098,13 @@ def trrs_holder_hole():
return translate(*trrs_key_holder_position())(union(rect_hole, cylinder_hole)) return translate(*trrs_key_holder_position())(union(rect_hole, cylinder_hole))
usb_holder_hole_dims = [6.5, 15.0, 9.212] usb_holder_hole_dims = [9, 8, 3.5]
usb_holder_thickness = 2.0 usb_holder_thickness = 0.5
def usb_holder_position(): def usb_holder_position():
base_place = point_on_grid(0, 0, 0, keyswitch_width / 2, 0) base_place = point_on_grid(0, 0, 0, keyswitch_width / 2, 0)
return [base_place[0] + 13, base_place[1], 9] return [base_place[0] + 8, base_place[1] + 2, 4]
def usb_holder_rim(): def usb_holder_rim():
@ -1194,11 +1194,11 @@ def right_shell():
connectors(), connectors(),
case_walls(), case_walls(),
screw_insert_all_shapes(screw_insert_outer), screw_insert_all_shapes(screw_insert_outer),
all_caps(), # all_caps(),
thumb_switches(), thumb_switches(),
thumb_walls(), thumb_walls(),
thumb_connectors(), thumb_connectors(),
thumb_caps(), # thumb_caps(),
thumb_to_body_connectors(), thumb_to_body_connectors(),
usb_holder_rim(), usb_holder_rim(),
), ),

View File

@ -1,8 +1,8 @@
from lib import * from lib import *
from math import radians, sin, cos from math import radians, sin, cos
SWITCH_RISER_RADIUS = 0.8 SWITCH_RISER_RADIUS = 0.9
SWITCH_RISER_HEIGHT = 4.2 SWITCH_RISER_HEIGHT = 4.5
def switch_riser_raw_dot_fn(): def switch_riser_raw_dot_fn():

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.