Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible end-cap design; not sure how well this one will work.
- Loading branch information
1 parent
59449c7
commit d3b2933
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
CYLINDER_DIAMETER = 40; | ||
CYLINDER_THICKNESS = 4; | ||
|
||
ENDCAP_THICKNESS = 2; | ||
ENDCAP_LENGTH = 4; | ||
|
||
TOLERANCE = 0.7; | ||
//DETAIL = 20; | ||
DETAIL = 100; | ||
|
||
module endcap() | ||
{ | ||
union() | ||
{ | ||
cylinder(r = CYLINDER_DIAMETER / 2, h = ENDCAP_THICKNESS, $fn = DETAIL); | ||
cylinder(r = CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE, h = ENDCAP_LENGTH, $fn = DETAIL); | ||
} | ||
} | ||
|
||
module clip_style_1() | ||
{ | ||
intersection() | ||
{ | ||
translate(v = [CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE, 2.5, ENDCAP_LENGTH]) | ||
rotate(a = [90, 0, 0]) | ||
linear_extrude(height = 5, center = false, convexity = 3, twist = 0, slices = DETAIL) | ||
polygon(points=[[0,0],[-5, 0],[0, 10]]); | ||
cylinder(r = CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE, h = 20, $fn = DETAIL); | ||
} | ||
translate(v = [CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE - 0.25, 0, 12]) | ||
sphere(r = 0.5, $fn = DETAIL); | ||
translate(v = [CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE - 0.25, 1.5, 12]) | ||
sphere(r = 0.5, $fn = DETAIL); | ||
translate(v = [CYLINDER_DIAMETER / 2 - CYLINDER_THICKNESS - TOLERANCE - 0.25, -1.5, 12]) | ||
sphere(r = 0.5, $fn = DETAIL); | ||
} | ||
|
||
module clip() | ||
{ | ||
clip_style_1(); | ||
} | ||
|
||
module clips() | ||
{ | ||
for (angle = [0 : 120 : 240]) | ||
{ | ||
rotate(a = [0, 0, angle]) | ||
clip(); | ||
} | ||
} | ||
|
||
union() | ||
{ | ||
endcap(); | ||
clips(); | ||
} |