author | Michael Krelin <hacker@klever.net> | 2016-01-13 10:13:41 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-01-13 10:13:41 (UTC) |
commit | 34af0c1f06a2bec183afdc412d4a05c1d0c8906f (patch) (side-by-side diff) | |
tree | b21814323d66619ec131546ac95ecf81a33876d2 | |
parent | f8b3bc2a1792a7ee8eeacf7dd1d9f5b3cc96a7a6 (diff) | |
download | redelta-34af0c1f06a2bec183afdc412d4a05c1d0c8906f.zip redelta-34af0c1f06a2bec183afdc412d4a05c1d0c8906f.tar.gz redelta-34af0c1f06a2bec183afdc412d4a05c1d0c8906f.tar.bz2 |
moving things around
-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 @@ -761,26 +761,12 @@ function platform() { var b = heatbed(); var g = glass(); g = g.connectTo(g.properties.c_bed,b.properties.c_glass,false,0); return b.union(g); } -function refaxes(o) { - if(!o) o = {}; - var l = o.l||20, g = o.g||0.7; - return union([ - CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), - CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), - CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) - ]); -} - -function P(x) { - return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); -} - var PARTS = { wip: function(params) { return duetholder(params); return PARTS.alltogethernow(params); return base_extrusions(); return foot(); @@ -856,12 +842,27 @@ function _main(params) { ///hd, hdhd[0], hdhd[1], ms); return rv; } +function refaxes(o) { + if(!o) o = {}; + var l = o.l||20, g = o.g||0.7; + return union([ + CSG.roundedCylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), + CSG.roundedCylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), + CSG.roundedCylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g]) + ]); +} + +function P(x) { + return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); +} + + function getParameterDefinitions() { return [{ name: 'part', type: 'choice', values: [ 'platform', |