refactor: Use proper "mount" terminology

This commit is contained in:
Leni Aniva 2024-07-09 21:34:06 -07:00
parent 840995d82b
commit b441789c9f
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,10 @@ from typing import Union, Optional
import cadquery as Cq
import nhf.parts.metric_threads as metric_threads
class TubeJoint:
class Mount:
"""
Describes the internal connection between two cylinders
"""
def diam_insertion_internal(self):
"""
@ -26,7 +29,7 @@ class TubeJoint:
"""
@dataclass
class ThreadedJoint(TubeJoint):
class ThreadedJoint(Mount):
pitch: float = 3
@ -59,7 +62,7 @@ class ThreadedJoint(TubeJoint):
length)
@dataclass
class BayonetJoint(TubeJoint):
class BayonetMount(Mount):
"""
Bayonet type joint
"""
@ -81,7 +84,7 @@ class Handle:
diam: float = 38
diam_inner: float = 33
joint: Optional[TubeJoint] = field(default_factory=lambda: ThreadedJoint())
joint: Optional[Mount] = field(default_factory=lambda: ThreadedJoint())
# Internal cavity diameter. This determines the wall thickness of the connector
diam_connector_internal: float = 18.0