-rw-r--r-- | delta.jscad | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/delta.jscad b/delta.jscad index b3bb3d3..5d40e26 100644 --- a/delta.jscad +++ b/delta.jscad | |||
@@ -599,6 +599,16 @@ function P(x) { | |||
599 | } | 599 | } |
600 | 600 | ||
601 | var PARTS = { | ||
602 | wip: function(params) { | ||
603 | return union(base_extrusions(),column_extrusions(),duet()); | ||
604 | } | ||
605 | }; | ||
606 | |||
601 | function main(params) { | 607 | function main(params) { |
602 | return refaxes().union(P(base_extrusions())); | 608 | var part = params.part && PARTS[params.part]; |
609 | if(!part) return refaxes(); | ||
610 | var rv = P(part(params)); | ||
611 | if(true) rv = rv.union(refaxes()); | ||
612 | return rv; | ||
603 | } | 613 | } |
604 | 614 | ||