From 49f0253b9f22790ce5d50ed83f901328e0acea89 Mon Sep 17 00:00:00 2001 From: Joshua Shreve Date: Fri, 6 Aug 2021 17:16:46 -0400 Subject: Minor mods, CAD trackball socket in models. --- src/dactyl_manuform.py | 12 +++++++----- src/generate_configuration.py | 1 + 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. -- cgit v1.2.3