summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-02-27 14:42:47 (UTC)
committer Michael Krelin <hacker@klever.net>2016-02-27 14:42:47 (UTC)
commit33c7b3b1dc1d7d9c706bfa25e9f56eb237aa7dfc (patch) (side-by-side diff)
tree5adc0e7e818ace30173fc7c4ba54aa861191dccb
parentb0cb21f0d722dd4ae845ba3341c6a3066afa0409 (diff)
downloadredelta-33c7b3b1dc1d7d9c706bfa25e9f56eb237aa7dfc.zip
redelta-33c7b3b1dc1d7d9c706bfa25e9f56eb237aa7dfc.tar.gz
redelta-33c7b3b1dc1d7d9c706bfa25e9f56eb237aa7dfc.tar.bz2
some missing parts
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--delta.jscad36
1 files changed, 35 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad
index 45e8765..12bdb97 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -879,13 +879,47 @@ var PARTS = {
},
duetholder: function(params) {
return duetholder();
},
foot: foot,
shoe: shoe,
- bedholder: bedholder
+ bedholder: bedholder,
+ platform: function(params) { return U.P(EFFECTOR.effector()) },
+ hinged: function(params) {
+ // TODO: handle print mode
+ var ms = microswitch();
+ var e = EFFECTOR.effector();
+ var hd = EFFECTOR.hinged({
+ microswitch:ms,effector:e
+ });
+ ms = ms.connectTo(
+ ms.properties.screw_connector[0],
+ hd.properties.microswitch_screw_connector[0],
+ false, 0);
+ var hdhd = EFFECTOR.split_hinged(hd);
+ return U.P(hdhd[1]);
+ },
+ // TODO: eliminate common code above and below
+ clamp: function(params) {
+ // TODO: handle print mode
+ var ms = microswitch();
+ var e = EFFECTOR.effector();
+ var hd = EFFECTOR.hinged({
+ microswitch:ms,effector:e
+ });
+ ms = ms.connectTo(
+ ms.properties.screw_connector[0],
+ hd.properties.microswitch_screw_connector[0],
+ false, 0);
+ var hdhd = EFFECTOR.split_hinged(hd);
+ return U.P(hdhd[0]);
+ },
+ fanholder: function(params) {
+ EFFECTOR.effector(); // to set up rmount
+ return U.P(EFFECTOR.fanholder());
+ }
};
function main(params) {
var part = params.part && PARTS[params.part];
if(!part) return U.axes();
var rv = U.P(part(params));