feat: Thread on handle terminal piece

This commit is contained in:
Leni Aniva 2024-06-26 12:01:01 -04:00
parent d823a58d88
commit 9fda02ed9d
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 11 additions and 3 deletions

View File

@ -164,15 +164,23 @@ class Handle:
height=self.rim_length, height=self.rim_length,
) )
) )
result.faces("<Z").tag("mate") result.faces(">Z").tag("mate")
result.faces(">Z").tag("base") result.faces("<Z").tag("base")
result = ( result = (
result result
.faces("<Z") .faces(">Z")
.workplane() .workplane()
.circle(self.diam_connector_external / 2) .circle(self.diam_connector_external / 2)
.extrude(self.insertion_length) .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 return result
def connector_insertion_assembly(self): def connector_insertion_assembly(self):