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) (unidiff)
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
@@ -882,7 +882,41 @@ var PARTS = {
882 }, 882 },
883 foot: foot, 883 foot: foot,
884 shoe: shoe, 884 shoe: shoe,
885 bedholder: bedholder 885 bedholder: bedholder,
886 platform: function(params) { return U.P(EFFECTOR.effector()) },
887 hinged: function(params) {
888 // TODO: handle print mode
889 var ms = microswitch();
890 var e = EFFECTOR.effector();
891 var hd = EFFECTOR.hinged({
892 microswitch:ms,effector:e
893 });
894 ms = ms.connectTo(
895 ms.properties.screw_connector[0],
896 hd.properties.microswitch_screw_connector[0],
897 false, 0);
898 var hdhd = EFFECTOR.split_hinged(hd);
899 return U.P(hdhd[1]);
900 },
901 // TODO: eliminate common code above and below
902 clamp: function(params) {
903 // TODO: handle print mode
904 var ms = microswitch();
905 var e = EFFECTOR.effector();
906 var hd = EFFECTOR.hinged({
907 microswitch:ms,effector:e
908 });
909 ms = ms.connectTo(
910 ms.properties.screw_connector[0],
911 hd.properties.microswitch_screw_connector[0],
912 false, 0);
913 var hdhd = EFFECTOR.split_hinged(hd);
914 return U.P(hdhd[0]);
915 },
916 fanholder: function(params) {
917 EFFECTOR.effector(); // to set up rmount
918 return U.P(EFFECTOR.fanholder());
919 }
886}; 920};
887 921
888function main(params) { 922function main(params) {