From 34af0c1f06a2bec183afdc412d4a05c1d0c8906f Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 13 Jan 2016 10:13:41 +0000 Subject: moving things around --- diff --git a/delta.jscad b/delta.jscad index 7384ecf..156e704 100644 --- a/delta.jscad +++ b/delta.jscad @@ -764,20 +764,6 @@ function platform() { 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); @@ -859,6 +845,21 @@ function _main(params) { 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', -- cgit v0.9.0.2