From 33c7b3b1dc1d7d9c706bfa25e9f56eb237aa7dfc Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 27 Feb 2016 14:42:47 +0000 Subject: some missing parts --- diff --git a/delta.jscad b/delta.jscad index 45e8765..12bdb97 100644 --- a/delta.jscad +++ b/delta.jscad @@ -882,7 +882,41 @@ 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()); + } }; function main(params) { -- cgit v0.9.0.2