author | Michael Krelin <hacker@klever.net> | 2016-01-08 11:36:08 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-08 11:36:08 (UTC) |
commit | 2104176d49450d4fb31c430a12bc16fa5befb63b (patch) (unidiff) | |
tree | a5f2d948fb82cedb5e8e5fea4e654d4c259abc1a | |
parent | 8eb0d1b0f417ac889bad97a582377130e4603b3d (diff) | |
download | redelta-2104176d49450d4fb31c430a12bc16fa5befb63b.zip redelta-2104176d49450d4fb31c430a12bc16fa5befb63b.tar.gz redelta-2104176d49450d4fb31c430a12bc16fa5befb63b.tar.bz2 |
rubber shoes
-rw-r--r-- | delta.jscad | 20 |
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 = { | |||
39 | shell: 4, | 39 | shell: 4, |
40 | zscalefactor: 1.6 | 40 | zscalefactor: 1.6, |
41 | foot: { ho: 2.5, hi: 5 } | ||
41 | }, | 42 | }, |
@@ -93,3 +94,4 @@ var CONFIG = { | |||
93 | bulk: [ .9, .9, .9, .2 ], | 94 | bulk: [ .9, .9, .9, .2 ], |
94 | parts: [ 0, 0.8, 0, 0.9 ] | 95 | parts: [ 0, 0.8, 0, 0.9 ], |
96 | softparts: [ 0, 0, 0.8, 0.9 ] | ||
95 | } | 97 | } |
@@ -638,2 +640,16 @@ function foot() { | |||
638 | } | 640 | } |
641 | function foot_foot() { | ||
642 | // TODO: connect in the altogethernow? | ||
643 | var F = CONFIG.foot; | ||
644 | var rv = CSG.cylinder({ | ||
645 | start: [0,0,0], end: [0,0,F.foot.ho], | ||
646 | radius: F.bolt.hd/2+F.margin | ||
647 | }).union(CSG.cylinder({ | ||
648 | start: [0,0,0], end: [0,0,F.foot.ho+F.foot.hi], | ||
649 | radius: F.bolt.hd/2+PRINT.play_tolerance-PRINT.fit_tolerance | ||
650 | })); | ||
651 | rv.properties.c_foot = new CSG.Connector([0,0,F.foot.ho],[0,0,1],[1,0,0]); | ||
652 | rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); | ||
653 | return rv.setColor(CONFIG.color.softparts); | ||
654 | } | ||
639 | 655 | ||