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) (side-by-side diff)
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
@@ -503,25 +503,27 @@ var E2020 = {
[ -e.T.width/2,e.outer/2-e.thickness],
[ -e.slot_width/2,e.outer/2-e.thickness],
[ -e.slot_width/2,e.outer/2+1],
]).rotateZ(w);
})
).subtract(CAG.circle({
center: [0,0], radius: e.centerhole/2
})).extrude({offset:[0,0,l]});
rv.properties.c_top=rv.properties.c_left
= new CSG.Connector([0,0,l],[0,0,-1],[1,0,0]);
rv.properties.c_bottom=rv.properties.c_right
= new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
+ rv.properties.c_midway = new CSG.Connector([0,0,l/2],[0,0,1],[1,0,0]);
rv.properties.P = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
+ rv.properties.vitamin = true;
return rv;
},
cap: function extrusion_cap(o) {
if(!o) o = {};
var e = o.extrusion || this;
var thickness = o.thickness||2, l = o.l||5;
var rv = CSG.roundedCube({
corner1: [-e.outer/2,-e.outer/2,thickness],
corner2: [e.outer/2,e.outer/2,0],
roundradius: [e.roundius,e.roundius,0]
});