summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Shreve <j.a.shreve@gmail.com>2021-08-11 21:11:22 -0400
committerJoshua Shreve <j.a.shreve@gmail.com>2021-08-11 21:11:22 -0400
commitadac76f4e7d119dd12fa9612387ac8ba609124fb (patch)
tree5cd69155f3712b40ad9dda9ed84dd10c676e9ca0 /src
parentca9783df5dc645a027743902f7f3b2e0348fd716 (diff)
Added undercut for tray.
Discovered why people had an issue with the tray. The cadquery had interference and solid did not. After fixing the unintentional difference, I found both had intereference. Added an undercut to locally thin the wall for tray engagement.
Diffstat (limited to 'src')
-rw-r--r--src/dactyl_manuform.py5
-rw-r--r--src/generate_configuration.py6
-rw-r--r--src/run_config.json3
3 files changed, 9 insertions, 5 deletions
diff --git a/src/dactyl_manuform.py b/src/dactyl_manuform.py
index d734684..666e890 100644
--- a/src/dactyl_manuform.py
+++ b/src/dactyl_manuform.py
@@ -2854,10 +2854,13 @@ external_start = list(
def external_mount_hole():
print('external_mount_hole()')
shape = box(external_holder_width, 20.0, external_holder_height+.1)
+ undercut = box(external_holder_width+8, 10.0, external_holder_height+8+.1)
+ shape = union([shape, translate(undercut,(0, -5, 0))])
+
shape = translate(shape,
(
external_start[0] + external_holder_xoffset,
- external_start[1],
+ external_start[1] + external_holder_yoffset,
external_holder_height / 2-.05,
)
)
diff --git a/src/generate_configuration.py b/src/generate_configuration.py
index 62adb1d..ba1fb3e 100644
--- a/src/generate_configuration.py
+++ b/src/generate_configuration.py
@@ -7,8 +7,8 @@ r2d = 180 / pi
shape_config = {
- # 'ENGINE': 'solid', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade
- 'ENGINE': 'cadquery', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade
+ 'ENGINE': 'solid', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade
+ # 'ENGINE': 'cadquery', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade
######################
@@ -284,7 +284,7 @@ shape_config = {
'external_holder_height': 12.5,
'external_holder_width': 28.75,
'external_holder_xoffset': -5.0,
-
+ 'external_holder_yoffset': -4.5, #Tweak this value to get the right undercut for the tray engagement.
# Offset is from the top inner corner of the top inner key.
diff --git a/src/run_config.json b/src/run_config.json
index 6465ff3..a712c6f 100644
--- a/src/run_config.json
+++ b/src/run_config.json
@@ -1,5 +1,5 @@
{
- "ENGINE": "cadquery",
+ "ENGINE": "solid",
"save_dir": ".",
"config_name": "DM",
"show_caps": false,
@@ -242,6 +242,7 @@
"external_holder_height": 12.5,
"external_holder_width": 28.75,
"external_holder_xoffset": -5.0,
+ "external_holder_yoffset": -4.5,
"screw_hole_diameter": 2,
"base_thickness": 3.0,
"base_offset": 3.0,