From 363a67841eda72b95cb0df135128dd86c80fabf9 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Tue, 6 Aug 2024 23:46:54 -0700 Subject: [PATCH] fix: Tongue overthick problem --- nhf/touhou/houjuu_nue/joints.py | 2 +- nhf/touhou/houjuu_nue/wing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nhf/touhou/houjuu_nue/joints.py b/nhf/touhou/houjuu_nue/joints.py index 9a6378e..ef03702 100644 --- a/nhf/touhou/houjuu_nue/joints.py +++ b/nhf/touhou/houjuu_nue/joints.py @@ -1362,7 +1362,7 @@ class ElbowJoint(Model): def post(sketch: Cq.Sketch) -> Cq.Sketch: y_outer = self.disk_joint.total_thickness / 2 y_inner = self.disk_joint.tongue_thickness / 2 - if y_outer < y_inner: + if y_outer <= y_inner: return sketch y = (y_outer + y_inner) / 2 width = self.lip_side_depression_width diff --git a/nhf/touhou/houjuu_nue/wing.py b/nhf/touhou/houjuu_nue/wing.py index 4909134..5728eca 100644 --- a/nhf/touhou/houjuu_nue/wing.py +++ b/nhf/touhou/houjuu_nue/wing.py @@ -34,7 +34,7 @@ ELBOW_PARAMS = dict( ELBOW_DISK_PARAMS = dict( housing_thickness=2.5, disk_thickness=6.8, - tongue_thickness=12.3, + tongue_thickness=2.5 * 2 + 6.8, ) WRIST_DISK_PARAMS = dict( movement_angle=30,