chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
150520d
)
poster-tube-lid: break out StrapMountProtrusion (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 18 Oct 2017 23:04:48 +0000
(
00:04
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 18 Oct 2017 23:04:48 +0000
(
00:04
+0100)
poster-tube-lid.scad
patch
|
blob
|
history
diff --git
a/poster-tube-lid.scad
b/poster-tube-lid.scad
index 53b1ab4bae3bda58c0102d3bec9784f835b64ce9..a354a4c3d06fc9254e3c5805d0c716a52236dc06 100644
(file)
--- a/
poster-tube-lid.scad
+++ b/
poster-tube-lid.scad
@@
-410,22
+410,26
@@
module StrapMountBolt(l_delta){ ///toplevel
}
}
}
}
+module StrapMountProtrusion(half_x, max_y){
+ translate(smc_pos){
+ linear_extrude(height=sm_main_width, convexity=10){
+ hull(){
+ for (m = [0,1]) mirror([m,0,0]) {
+ translate([-(half_x - sm_closure_cnr), max_y - sm_closure_cnr])
+ circle(r=sm_closure_cnr);
+ translate([-half_x, -sm_inner_rad])
+ square([1,1]);
+ }
+ }
+ }
+ }
+}
+
module StrapMount(){ ////toplevel
difference(){
union(){
cylinder(r=sm_outer_rad, h=sm_main_width);
module StrapMount(){ ////toplevel
difference(){
union(){
cylinder(r=sm_outer_rad, h=sm_main_width);
- translate(smc_pos){
- linear_extrude(height=sm_main_width, convexity=10){
- hull(){
- for (m = [0,1]) mirror([m,0,0]) {
- translate([-smc_cnr_c_x, smc_max_y - sm_closure_cnr])
- circle(r=sm_closure_cnr);
- translate([-smc_cnr_c_x-sm_closure_cnr, -sm_inner_rad])
- square([1,1]);
- }
- }
- }
- }
+ StrapMountProtrusion(smc_cnr_c_x + sm_closure_cnr, smc_max_y);
}
translate([0,0,-1])
cylinder(r=sm_inner_rad, h=sm_main_width+2);
}
translate([0,0,-1])
cylinder(r=sm_inner_rad, h=sm_main_width+2);