summaryrefslogtreecommitdiffabout
Side-by-side diff
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
@@ -883,5 +883,39 @@ var PARTS = {
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());
+ }
};