diff options
author | Joshua Shreve <j.a.shreve@gmail.com> | 2021-08-20 16:56:35 -0400 |
---|---|---|
committer | Joshua Shreve <j.a.shreve@gmail.com> | 2021-08-20 16:56:35 -0400 |
commit | b9c0013ea9dd83aaa83c994b0a572ace64d75c72 (patch) | |
tree | fac728afa63bc76be35456afd0153091ed03750f /src/dactyl_manuform.py | |
parent | 338510f9857da2f1949550c28209af280c13965e (diff) |
Now supports trackball in wall and in a cluster. An unlikely config, but it simplifies construction by removing the setting interdependency.
Diffstat (limited to 'src/dactyl_manuform.py')
-rw-r--r-- | src/dactyl_manuform.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/dactyl_manuform.py b/src/dactyl_manuform.py index 27e74c6..079ef6f 100644 --- a/src/dactyl_manuform.py +++ b/src/dactyl_manuform.py @@ -3509,11 +3509,23 @@ def model_side(side="right"): shape = difference(shape, [hole]) shape = union([shape, frame]) + if trackball_in_wall and (side == ball_side or ball_side == 'both'): + tbprecut, tb, tbcutout, sensor, ball = generate_trackball_in_wall() + + shape = difference(shape, [tbprecut]) + # export_file(shape=shape, fname=path.join(save_path, config_name + r"_test_1")) + shape = union([shape, tb]) + # export_file(shape=shape, fname=path.join(save_path, config_name + r"_test_2")) + shape = difference(shape, [tbcutout]) + # export_file(shape=shape, fname=path.join(save_path, config_name + r"_test_3a")) + # export_file(shape=add([shape, sensor]), fname=path.join(save_path, config_name + r"_test_3b")) + shape = union([shape, sensor]) + + if show_caps: + shape = add([shape, ball]) + if (trackball_in_wall or ('TRACKBALL' in thumb_style)) and (side == ball_side or ball_side == 'both'): - if trackball_in_wall: - tbprecut, tb, tbcutout, sensor, ball = generate_trackball_in_wall() - elif 'TRACKBALL' in thumb_style: - tbprecut, tb, tbcutout, sensor, ball = generate_trackball_in_cluster() + tbprecut, tb, tbcutout, sensor, ball = generate_trackball_in_cluster() shape = difference(shape, [tbprecut]) # export_file(shape=shape, fname=path.join(save_path, config_name + r"_test_1")) |