summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--delta.jscad12
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
@@ -600,4 +600,14 @@ function P(x) {
+var PARTS = {
+ wip: function(params) {
+ return union(base_extrusions(),column_extrusions(),duet());
+ }
+};
+
function main(params) {
- return refaxes().union(P(base_extrusions()));
+ var part = params.part && PARTS[params.part];
+ if(!part) return refaxes();
+ var rv = P(part(params));
+ if(true) rv = rv.union(refaxes());
+ return rv;
}