chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tube-crossdrill-jig: sort out slot plug shape
[reprap-play.git]
/
tube-crossdrill-jig.scad
diff --git
a/tube-crossdrill-jig.scad
b/tube-crossdrill-jig.scad
index 5d9711ea6cb3a91e8db711de37bccf20a885a112..5619e93eb649a86b1a4d34be12698bc6ec5a826e 100644
(file)
--- a/
tube-crossdrill-jig.scad
+++ b/
tube-crossdrill-jig.scad
@@
-1,10
+1,15
@@
// -*- C -*-
// -*- C -*-
+//$fs=0.1;
+//$fa=3;
+$fs=0.2;
+$fa=6;
+
rearwallthick = 3;
basethick = 3;
mainframeendthick = 2.5;
rearwallthick = 3;
basethick = 3;
mainframeendthick = 2.5;
-tubedia
=16
;
+tubedia
= 16 + 0.8
;
tubetubethick=2;
tubetubetopslop=1;
tubetubethick=2;
tubetubetopslop=1;
@@
-17,7
+22,10
@@
backslotedgespace = 71;
slotwidth = 11.5;
backslotmid2screwhole = 17;
slotplugheight = 5.5;
slotwidth = 11.5;
backslotmid2screwhole = 17;
slotplugheight = 5.5;
-slotplugdepth = 10;
+slotplugshorterlen = 8;
+slotpluglongerlen = 18;
+
+slotslope = 11.0 / 18.5;
// "keepslot" refers to the screws in the wooden jig block
keepslotstartz = 20;
// "keepslot" refers to the screws in the wooden jig block
keepslotstartz = 20;
@@
-42,6
+50,14
@@
mainframemaxx = mainframeholex + mainframeextraside;
mainframeminy = mainframeholey - mainframeextrafront;
mainframemaxz = keepslotstartz + keepslotlen;
mainframeminy = mainframeholey - mainframeextrafront;
mainframemaxz = keepslotstartz + keepslotlen;
+slotslopediag = sqrt(1 + slotslope*slotslope);
+slotwidthx = slotwidth * slotslopediag;
+
+slotxperlen = slotslope / slotslopediag;
+slotyperlen = 1 / slotslopediag;
+
+echo(slotslope, slotslopediag, slotwidthx);
+
module MainFrame(){
for (m=[0,1]) {
mirror([m,0,0]) {
module MainFrame(){
for (m=[0,1]) {
mirror([m,0,0]) {
@@
-50,7
+66,7
@@
module MainFrame(){
translate([-1, -rearwallthick, 0])
cube([mainframemaxx+1, rearwallthick, mainframemaxz]);
translate([-1, -rearwallthick, 0])
cube([mainframemaxx+1, rearwallthick, mainframemaxz]);
- for (x=[keepslotx - keepslotclear, mainframemaxx]) {
+ for (x=[keepslotx - keepslotclear, mainframemaxx
- 0.5
]) {
translate([x,0,0])
rotate([90,0,-90])
linear_extrude(height=mainframeendthick)
translate([x,0,0])
rotate([90,0,-90])
linear_extrude(height=mainframeendthick)
@@
-63,10
+79,11
@@
module MainFrame(){
mirror([0,0,1])
linear_extrude(height=slotplugheight+1)
polygon([[0,0],
mirror([0,0,1])
linear_extrude(height=slotplugheight+1)
polygon([[0,0],
- [slotwidth * sqrt(2), 0],
- [slotplugdepth / sqrt(2) + slotwidth * sqrt(2),
- -slotplugdepth],
- [slotplugdepth / sqrt(2), -slotplugdepth]]);
+ [slotwidthx, 0],
+ [slotwidthx + slotplugshorterlen * slotxperlen,
+ -slotplugshorterlen * slotyperlen],
+ [slotpluglongerlen * slotxperlen,
+ -slotpluglongerlen * slotyperlen]]);
translate([-1,
-rearwallthick - boltholeslotshorter + 0.2,
tubedia + tubetubetopslop + tubetubethick + 4])
translate([-1,
-rearwallthick - boltholeslotshorter + 0.2,
tubedia + tubetubetopslop + tubetubethick + 4])
@@
-117,4
+134,5
@@
module Jig(){
//MainFrame();
//TubeThing(0, tubedia);
//MainFrame();
//TubeThing(0, tubedia);
-Jig();
+rotate([-90,0,0])
+ Jig();