From 9fda02ed9dc5e7b3b3941a4e782452411cf78623 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Wed, 26 Jun 2024 12:01:01 -0400 Subject: [PATCH] feat: Thread on handle terminal piece --- nhf/handle.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nhf/handle.py b/nhf/handle.py index fbd8c56..3aef3bb 100644 --- a/nhf/handle.py +++ b/nhf/handle.py @@ -164,15 +164,23 @@ class Handle: height=self.rim_length, ) ) - result.faces("Z").tag("base") + result.faces(">Z").tag("mate") + result.faces("Z") .workplane() .circle(self.diam_connector_external / 2) .extrude(self.insertion_length) ) + if not self.simplify_geometry: + thread = self._external_thread().val() + result = ( + result + .union( + thread + .moved(Cq.Vector(0, 0, self.connector_length / 2))) + ) return result def connector_insertion_assembly(self):