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 (from parent 1:
40c4ef4
)
poster-tube-lid: BayonetCutout abstract out polygon (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 8 Oct 2017 01:36:27 +0000
(
02:36
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 8 Oct 2017 01:36:27 +0000
(
02:36
+0100)
poster-tube-lid.scad
patch
|
blob
|
history
diff --git
a/poster-tube-lid.scad
b/poster-tube-lid.scad
index 47e6a848f755aca31d5984fc449157dbbf6e40dd..86c14833e2145182b73200685f1b4bad1e9c9de6 100644
(file)
--- a/
poster-tube-lid.scad
+++ b/
poster-tube-lid.scad
@@
-112,14
+112,14
@@
module MainProfile(){
]);
}
]);
}
-module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
+module RotateProjectSlice(offset,
poly,
slice_size, nom_rad, real_rad){
// nom_rad > real_rad
rotate([0,0, atan2(offset, nom_rad) ]){
intersection(){
translate([-offset, -10, 0])
rotate([90,0,0])
linear_extrude(height= nom_rad*2)
// nom_rad > real_rad
rotate([0,0, atan2(offset, nom_rad) ]){
intersection(){
translate([-offset, -10, 0])
rotate([90,0,0])
linear_extrude(height= nom_rad*2)
- polygon(
bayo_polygon
);
+ polygon(
poly
);
translate([0,0, -25])
cylinder(h=50, r= real_rad);
translate([0,0, -25])
translate([0,0, -25])
cylinder(h=50, r= real_rad);
translate([0,0, -25])
@@
-131,17
+131,18
@@
module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
}
}
}
}
-module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
+module RotateProject(
poly,
x_min, x_max, slice_size, nom_rad, real_rad){
offs = [ for (i=[ x_min :
slice_size :
x_max + slice_size ]) i ];
echo (offs);
for (off=offs)
offs = [ for (i=[ x_min :
slice_size :
x_max + slice_size ]) i ];
echo (offs);
for (off=offs)
- RotateProjectSlice(off, slice_size, nom_rad, real_rad);
+ RotateProjectSlice(off,
poly,
slice_size, nom_rad, real_rad);
}
module BayonetCutout(){
}
module BayonetCutout(){
- RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
+ RotateProject(bayo_polygon,
+ bayo_c[0], bayo_i[0], bayo_slice_size,
main_dia/2 + side_thick,
main_dia/2 + rivet_tall);
}
main_dia/2 + side_thick,
main_dia/2 + rivet_tall);
}