summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--delta.jscad20
1 files changed, 18 insertions, 2 deletions
diff --git a/delta.jscad b/delta.jscad
index ad19f88..eb538d2 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -39,3 +39,4 @@ var CONFIG = {
shell: 4,
- zscalefactor: 1.6
+ zscalefactor: 1.6,
+ foot: { ho: 2.5, hi: 5 }
},
@@ -93,3 +94,4 @@ var CONFIG = {
bulk: [ .9, .9, .9, .2 ],
- parts: [ 0, 0.8, 0, 0.9 ]
+ parts: [ 0, 0.8, 0, 0.9 ],
+ softparts: [ 0, 0, 0.8, 0.9 ]
}
@@ -638,2 +640,16 @@ function foot() {
}
+function foot_foot() {
+ // TODO: connect in the altogethernow?
+ var F = CONFIG.foot;
+ var rv = CSG.cylinder({
+ start: [0,0,0], end: [0,0,F.foot.ho],
+ radius: F.bolt.hd/2+F.margin
+ }).union(CSG.cylinder({
+ start: [0,0,0], end: [0,0,F.foot.ho+F.foot.hi],
+ radius: F.bolt.hd/2+PRINT.play_tolerance-PRINT.fit_tolerance
+ }));
+ rv.properties.c_foot = new CSG.Connector([0,0,F.foot.ho],[0,0,1],[1,0,0]);
+ rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
+ return rv.setColor(CONFIG.color.softparts);
+}