-rw-r--r-- | delta.jscad | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/delta.jscad b/delta.jscad index 7384ecf..156e704 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -764,20 +764,6 @@ function platform() { | |||
764 | return b.union(g); | 764 | return b.union(g); |
765 | } | 765 | } |
766 | 766 | ||
767 | function refaxes(o) { | ||
768 | if(!o) o = {}; | ||
769 | var l = o.l||20, g = o.g||0.7; | ||
770 | return union([ | ||
771 | CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), | ||
772 | CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), | ||
773 | CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) | ||
774 | ]); | ||
775 | } | ||
776 | |||
777 | function P(x) { | ||
778 | return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); | ||
779 | } | ||
780 | |||
781 | var PARTS = { | 767 | var PARTS = { |
782 | wip: function(params) { | 768 | wip: function(params) { |
783 | return duetholder(params); | 769 | return duetholder(params); |
@@ -859,6 +845,21 @@ function _main(params) { | |||
859 | return rv; | 845 | return rv; |
860 | } | 846 | } |
861 | 847 | ||
848 | function refaxes(o) { | ||
849 | if(!o) o = {}; | ||
850 | var l = o.l||20, g = o.g||0.7; | ||
851 | return union([ | ||
852 | CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), | ||
853 | CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), | ||
854 | CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) | ||
855 | ]); | ||
856 | } | ||
857 | |||
858 | function P(x) { | ||
859 | return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); | ||
860 | } | ||
861 | |||
862 | |||
862 | function getParameterDefinitions() { | 863 | function getParameterDefinitions() { |
863 | return [{ | 864 | return [{ |
864 | name: 'part', | 865 | name: 'part', |