summaryrefslogtreecommitdiffstats
path: root/cad/assembly.py
diff options
context:
space:
mode:
Diffstat (limited to 'cad/assembly.py')
-rw-r--r--cad/assembly.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/cad/assembly.py b/cad/assembly.py
new file mode 100644
index 0000000..32c8202
--- /dev/null
+++ b/cad/assembly.py
@@ -0,0 +1,12 @@
+#!venv/bin/python3
+
+from solid import *
+from solid.utils import *
+
+def main():
+ d = difference()(
+ cube(10),
+ sphere(15)
+ )
+
+ scad_render_to_file(d, 'test.scad')