-rw-r--r-- | delta.jscad | 36 |
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 @@ -884,3 +884,37 @@ var PARTS = { 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()); + } }; |