summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Shreve <j.a.shreve@gmail.com>2021-08-06 17:16:46 -0400
committerJoshua Shreve <j.a.shreve@gmail.com>2021-08-06 17:16:46 -0400
commit49f0253b9f22790ce5d50ed83f901328e0acea89 (patch)
tree7a30e0b63cc03722da33630a2ac56a23866f1529 /src
parentb09b92f639477ca8264118fcc728c6e8094b1cd8 (diff)
Minor mods, CAD trackball socket in models.
Diffstat (limited to 'src')
-rw-r--r--src/dactyl_manuform.py12
-rw-r--r--src/generate_configuration.py1
2 files changed, 8 insertions, 5 deletions
diff --git a/src/dactyl_manuform.py b/src/dactyl_manuform.py
index 2930aa5..3379fb9 100644
--- a/src/dactyl_manuform.py
+++ b/src/dactyl_manuform.py
@@ -2814,7 +2814,9 @@ def generate_trackball_in_wall():
cutout = translate(cutout, (0, 0, ball_z_offset))
cutout = rotate(cutout, rot)
cutout = translate(cutout, pos)
- #
+
+ # Small adjustment due to line to line surface / minute numerical error issues
+ # Creates small overlap to assist engines in union function later
sensor = translate(sensor, (0, 0, ball_z_offset+.001))
sensor = rotate(sensor, rot)
sensor = translate(sensor, pos)
@@ -3432,12 +3434,12 @@ def model_side(side="right"):
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"))
+ # 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"))
+ # 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"))
+ # 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:
diff --git a/src/generate_configuration.py b/src/generate_configuration.py
index c6afee2..08c67c0 100644
--- a/src/generate_configuration.py
+++ b/src/generate_configuration.py
@@ -76,6 +76,7 @@ shape_config = {
'trackball_Usize': 1.5, # size for inner key near trackball
'trackball_rotation': 0.0, # used to rotate the sensor direction around z.
+ # 'trackball_sensor_rotation': 0.0, # used to rotate the sensor direction around z.
'ball_side': 'right',
'ball_diameter': 34.0,
'ball_wall_thickness': 3.0, # should not be changed unless the import models are changed.