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:
65d1fbf
)
knifeblock: wip peg recess
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 31 Dec 2014 17:47:29 +0000
(17:47 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 31 Dec 2014 17:47:29 +0000
(17:47 +0000)
knifeblock.scad
patch
|
blob
|
history
diff --git
a/knifeblock.scad
b/knifeblock.scad
index 6d7e96a5a1a355607cccd6cfeda4465013407317..3c67fc1d8234ac7d3580b2db21feb1d1d256a89b 100644
(file)
--- a/
knifeblock.scad
+++ b/
knifeblock.scad
@@
-42,7
+42,14
@@
pegstemheight = 2;
pegheight = 9;
peglen = 12;
pegheight = 9;
peglen = 12;
-pegslop = 0.5;
+recessblockwidth = peghead + pegstem*3;
+recessblockheight = peglen + pegstem*1.5;
+
+pegsloph = 0.5;
+pegslopv = 0.5;
+pegslopl = 0.5;
+
+pegdepthproportion = 0.67;
// computed
side = minsidein + screwcsinkdia + minsideout;
// computed
side = minsidein + screwcsinkdia + minsideout;
@@
-54,6
+61,8
@@
maxkx = locations[nknives-1] + widths[nknives-1]/2;
minx = minkx - side;
maxx = maxkx + side;
minx = minkx - side;
maxx = maxkx + side;
+pegrecess = pegdepthproportion*totaldepth - 0.5*peglen;
+
module ImportTemplate(w,k,t) {
fn = str("knifeblock-knives-t",k,t,".dxf");
echo(fn);
module ImportTemplate(w,k,t) {
fn = str("knifeblock-knives-t",k,t,".dxf");
echo(fn);
@@
-140,6
+149,7
@@
module CoverSide(xpos, len){
[len - covertopwing, totaldepth],
[len, totaldepth],
[len, 0]]);
[len - covertopwing, totaldepth],
[len, totaldepth],
[len, 0]]);
+ cube([recessblockwidth, recessblockheight, totaldepth]);
}
}
}
}
@@
-157,14
+167,15
@@
module PegTemplate(){
module Peg(){
echo("peg angle slope (must be <1)",
(peghead-pegstem)/(pegheight-pegstemheight));
module Peg(){
echo("peg angle slope (must be <1)",
(peghead-pegstem)/(pegheight-pegstemheight));
- d = pegslop;
+ dx = pegsloph;
+ dy = pegslopv;
rotate([90,0,0]) {
rotate([90,0,0]) {
- linear_extrude(height=peglen) {
+ linear_extrude(height=peglen
-pegslopl
) {
intersection(){
intersection(){
- translate([-d
,-d
,0]) PegTemplate();
- translate([-d
,+d
,0]) PegTemplate();
- translate([+d
,+d
,0]) PegTemplate();
- translate([+d
,-d
,0]) PegTemplate();
+ translate([-d
x,-dy
,0]) PegTemplate();
+ translate([-d
x,+dy
,0]) PegTemplate();
+ translate([+d
x,+dy
,0]) PegTemplate();
+ translate([+d
x,-dy
,0]) PegTemplate();
}
}
}
}
}
}