From 70221c34a5021b3a63aa7fe7a1e925404a36cc95 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 06 Jan 2016 22:33:26 +0000 Subject: reference axes --- diff --git a/delta.jscad b/delta.jscad index 0ef25e3..baa977d 100644 --- a/delta.jscad +++ b/delta.jscad @@ -523,6 +523,16 @@ var E2020 = { } }; + +function refaxes(o) { + if(!o) o = {}; + var l = o.l||20, g = o.g||0.7; + return union([ + CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]), + CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]), + CSG.cylinder({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); } -- cgit v0.9.0.2