author | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:06 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-06 22:34:06 (UTC) |
commit | 506bc3db8f3c1abdc97b9331ad4f038c7f851b51 (patch) (unidiff) | |
tree | eed49b2e5a5b3b8466070ac651e744705619b626 | |
parent | 70221c34a5021b3a63aa7fe7a1e925404a36cc95 (diff) | |
download | redelta-506bc3db8f3c1abdc97b9331ad4f038c7f851b51.zip redelta-506bc3db8f3c1abdc97b9331ad4f038c7f851b51.tar.gz redelta-506bc3db8f3c1abdc97b9331ad4f038c7f851b51.tar.bz2 |
more configuration
-rw-r--r-- | delta.jscad | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/delta.jscad b/delta.jscad index baa977d..547b51e 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -7,7 +7,10 @@ var PRINT = { | |||
7 | 7 | ||
8 | var CONFIG = { | 8 | var CONFIG = { |
9 | side: { | 9 | extrusion: { |
10 | w: 20 | ||
11 | }, | ||
12 | base: { | ||
10 | el: 240, // side extrusion length | 13 | el: 240, // side extrusion length |
11 | tl: 240+2*70, // triangle side length | 14 | sl: 240+2*70, // triangle side length |
12 | gap: 9 // vertical gap between side extrusions | 15 | gap: 9 // vertical gap between side extrusions |
13 | }, | 16 | }, |
@@ -71,5 +74,26 @@ var CONFIG = { | |||
71 | } | 74 | } |
72 | }, | 75 | }, |
73 | nut: { h: 2.3, w: 5.5 } | 76 | nut: { h: 2.3, w: 5.5 }, |
77 | color: { | ||
78 | extrusion: [0.8, 0.8, 0.8, 0.8] | ||
79 | } | ||
80 | }; | ||
81 | |||
82 | var CD = { | ||
83 | base: (function(){ | ||
84 | var rv = {}; | ||
85 | rv.circumscription_r = | ||
86 | CONFIG.base.sl/2/Math.cos(Math.PI/6); | ||
87 | rv.outer_inscription_r = | ||
88 | Math.sqrt(Math.pow(rv.circumscription_r,2)- | ||
89 | Math.pow(CONFIG.base.sl/2,2)); | ||
90 | rv.mid_inscription_r = | ||
91 | rv.outer_inscription_r-CONFIG.extrusion.w/2; | ||
92 | rv.inner_inscription_r = | ||
93 | rv.outer_inscription_r-CONFIG.extrusion.w/2; | ||
94 | // TODO: properly calculate | ||
95 | rv.column_r = rv.circumscription_r - 48.29; | ||
96 | return rv; | ||
97 | })() | ||
74 | }; | 98 | }; |
75 | 99 | ||