summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-06 22:34:25 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-06 22:34:25 (UTC)
commita7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3 (patch) (unidiff)
tree080143c825ad2efcb59460aa3d7324d30abf688b
parent506bc3db8f3c1abdc97b9331ad4f038c7f851b51 (diff)
downloadredelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.zip
redelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.tar.gz
redelta-a7f7cd089e5a0e29b6c6e25120a6e9ce83d830f3.tar.bz2
extrusion: midway connector and vitamin designation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad2
1 files changed, 2 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 547b51e..c134c29 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -509,13 +509,15 @@ var E2020 = {
509 center: [0,0], radius: e.centerhole/2 509 center: [0,0], radius: e.centerhole/2
510 })).extrude({offset:[0,0,l]}); 510 })).extrude({offset:[0,0,l]});
511 rv.properties.c_top=rv.properties.c_left 511 rv.properties.c_top=rv.properties.c_left
512 = new CSG.Connector([0,0,l],[0,0,-1],[1,0,0]); 512 = new CSG.Connector([0,0,l],[0,0,-1],[1,0,0]);
513 rv.properties.c_bottom=rv.properties.c_right 513 rv.properties.c_bottom=rv.properties.c_right
514 = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); 514 = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
515 rv.properties.c_midway = new CSG.Connector([0,0,l/2],[0,0,1],[1,0,0]);
515 rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]); 516 rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
517 rv.properties.vitamin = true;
516 return rv; 518 return rv;
517 }, 519 },
518 520
519 cap: function extrusion_cap(o) { 521 cap: function extrusion_cap(o) {
520 if(!o) o = {}; 522 if(!o) o = {};
521 var e = o.extrusion || this; 523 var e = o.extrusion || this;