summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-07 20:55:38 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-07 20:55:38 (UTC)
commitfb43f676ec642311ebd214a21be4c960b008bcad (patch) (unidiff)
treec8fc64217c904e6dad7f96ce87a3b6ede596340e
parent40385e372ced49ce2bc4acc1eff2f058feaa9b57 (diff)
downloadredelta-fb43f676ec642311ebd214a21be4c960b008bcad.zip
redelta-fb43f676ec642311ebd214a21be4c960b008bcad.tar.gz
redelta-fb43f676ec642311ebd214a21be4c960b008bcad.tar.bz2
column connector for the foot
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad1
1 files changed, 1 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 2e6365c..9c13528 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -619,32 +619,33 @@ function foot() {
619 })).subtract([ 619 })).subtract([
620 CSG.cylinder({ // bolt hole 620 CSG.cylinder({ // bolt hole
621 start: [0,0,-1], end: [0,0,F.h+1], radius: F.bolt.d/2+PRINT.slide_tolerance 621 start: [0,0,-1], end: [0,0,F.h+1], radius: F.bolt.d/2+PRINT.slide_tolerance
622 }), CSG.cylinder({ // nut hole 622 }), CSG.cylinder({ // nut hole
623 start: [0,0,F.h-F.nut.h-PRINT.play_tolerance], 623 start: [0,0,F.h-F.nut.h-PRINT.play_tolerance],
624 end: [0,0,F.h], 624 end: [0,0,F.h],
625 radius: F.nut.d/2+PRINT.slide_tolerance, resolution: 6 625 radius: F.nut.d/2+PRINT.slide_tolerance, resolution: 6
626 }), CSG.cylinder({ // bolthead/washer hole 626 }), CSG.cylinder({ // bolthead/washer hole
627 start: [0,0,-1], end: [0,0,F.h-F.nut.h-PRINT.play_tolerance-F.shell], 627 start: [0,0,-1], end: [0,0,F.h-F.nut.h-PRINT.play_tolerance-F.shell],
628 radius: F.bolt.hd/2+PRINT.play_tolerance 628 radius: F.bolt.hd/2+PRINT.play_tolerance
629 }) 629 })
630 ]).union(CSG.cylinder({ // bridging patch 630 ]).union(CSG.cylinder({ // bridging patch
631 start: [0,0,F.h-F.nut.h-PRINT.play_tolerance-PRINT.layer_height], 631 start: [0,0,F.h-F.nut.h-PRINT.play_tolerance-PRINT.layer_height],
632 end: [0,0,F.h-F.nut.h-PRINT.play_tolerance], 632 end: [0,0,F.h-F.nut.h-PRINT.play_tolerance],
633 radius: F.nut.d/2 633 radius: F.nut.d/2
634 })); 634 }));
635 rv.properties.c_column = new CSG.Connector([0,0,F.h],[0,0,1],[1,0,0]);
635 rv.properties.P = new CSG.Connector([0,0,F.h],[0,0,-1],[1,0,0]); 636 rv.properties.P = new CSG.Connector([0,0,F.h],[0,0,-1],[1,0,0]);
636 return rv.setColor(CONFIG.color.parts); 637 return rv.setColor(CONFIG.color.parts);
637} 638}
638 639
639function refaxes(o) { 640function refaxes(o) {
640 if(!o) o = {}; 641 if(!o) o = {};
641 var l = o.l||20, g = o.g||0.7; 642 var l = o.l||20, g = o.g||0.7;
642 return union([ 643 return union([
643 CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), 644 CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]),
644 CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), 645 CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]),
645 CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) 646 CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g])
646 ]); 647 ]);
647} 648}
648 649
649function P(x) { 650function P(x) {
650 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); 651 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0);