diff options
-rw-r--r-- | cad/__init__.py | 0 | ||||
-rw-r--r-- | cad/assembly.py | 12 | ||||
-rw-r--r-- | cad/parameters.py (renamed from parameters.py) | 0 | ||||
-rwxr-xr-x | main.py | 9 | ||||
-rwxr-xr-x | test.py | 11 |
5 files changed, 21 insertions, 11 deletions
diff --git a/cad/__init__.py b/cad/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cad/__init__.py 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') diff --git a/parameters.py b/cad/parameters.py index 705a41a..705a41a 100644 --- a/parameters.py +++ b/cad/parameters.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 +# SPDX-License-Identifier: MIT + + +from cad import assembly + + +if __name__ == '__main__': + assembly.main() diff --git a/test.py b/test.py deleted file mode 100755 index 7557963..0000000 --- a/test.py +++ /dev/null @@ -1,11 +0,0 @@ -#!venv/bin/python3 - -from solid import * -from solid.utils import * - -d = difference()( - cube(10), - sphere(15) -) - -scad_render_to_file(d, 'test.scad') |