summaryrefslogtreecommitdiffabout
path: root/delta.jscad
Unidiff
Diffstat (limited to 'delta.jscad') (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad10
1 files changed, 10 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 0ef25e3..baa977d 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -523,6 +523,16 @@ var E2020 = {
523 } 523 }
524}; 524};
525 525
526
527function refaxes(o) {
528 if(!o) o = {};
529 var l = o.l||20, g = o.g||0.7;
530 return union([
531 CSG.cylinder({start:[0,0,0],end:[l,0,0]}).setColor([1,0,0,g]),
532 CSG.cylinder({start:[0,0,0],end:[0,l,0]}).setColor([0,1,0,g]),
533 CSG.cylinder({start:[0,0,0],end:[0,0,l]}).setColor([0,0,1,g])
534 ]);
535}
526function P(x) { 536function P(x) {
527 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0); 537 return x.connectTo(x.properties.P,new CSG.Connector([0,0,0],[0,0,1],[1,0,0]), false, 0);
528} 538}