refactor: Use proper "mount" terminology
This commit is contained in:
parent
840995d82b
commit
b441789c9f
|
@ -6,7 +6,10 @@ from typing import Union, Optional
|
||||||
import cadquery as Cq
|
import cadquery as Cq
|
||||||
import nhf.parts.metric_threads as metric_threads
|
import nhf.parts.metric_threads as metric_threads
|
||||||
|
|
||||||
class TubeJoint:
|
class Mount:
|
||||||
|
"""
|
||||||
|
Describes the internal connection between two cylinders
|
||||||
|
"""
|
||||||
|
|
||||||
def diam_insertion_internal(self):
|
def diam_insertion_internal(self):
|
||||||
"""
|
"""
|
||||||
|
@ -26,7 +29,7 @@ class TubeJoint:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ThreadedJoint(TubeJoint):
|
class ThreadedJoint(Mount):
|
||||||
|
|
||||||
pitch: float = 3
|
pitch: float = 3
|
||||||
|
|
||||||
|
@ -59,7 +62,7 @@ class ThreadedJoint(TubeJoint):
|
||||||
length)
|
length)
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class BayonetJoint(TubeJoint):
|
class BayonetMount(Mount):
|
||||||
"""
|
"""
|
||||||
Bayonet type joint
|
Bayonet type joint
|
||||||
"""
|
"""
|
||||||
|
@ -81,7 +84,7 @@ class Handle:
|
||||||
diam: float = 38
|
diam: float = 38
|
||||||
diam_inner: float = 33
|
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
|
# Internal cavity diameter. This determines the wall thickness of the connector
|
||||||
diam_connector_internal: float = 18.0
|
diam_connector_internal: float = 18.0
|
||||||
|
|
Loading…
Reference in New Issue