diff options
author | VG <vg@devys.org> | 2016-12-09 11:25:11 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-12-09 11:25:11 +0100 |
commit | 7baec10b5c7e454276fafee86fdf91409b242715 (patch) | |
tree | 05ed33ffda659796778a4815ea7f1116421f7dbd /cad | |
parent | 96cd0418f870ea0c2fc9870761dd1f19d7277e67 (diff) | |
download | catcad-7baec10b5c7e454276fafee86fdf91409b242715.tar.gz catcad-7baec10b5c7e454276fafee86fdf91409b242715.tar.bz2 catcad-7baec10b5c7e454276fafee86fdf91409b242715.zip |
organize files in a package
Diffstat (limited to 'cad')
-rw-r--r-- | cad/__init__.py | 0 | ||||
-rw-r--r-- | cad/assembly.py | 12 | ||||
-rw-r--r-- | cad/parameters.py | 13 |
3 files changed, 25 insertions, 0 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/cad/parameters.py b/cad/parameters.py new file mode 100644 index 0000000..705a41a --- /dev/null +++ b/cad/parameters.py @@ -0,0 +1,13 @@ +#!python3 + +''' +Parameters of model, modify this file to suit your needs +''' + +external_size = (370, 270, 180) +connector_panel_size = (16, 2, 45) +motherboard_size = (270, 210, 3) +powersupply_size = (150, 150, 80) +storage_size = (70, 80, 10) +wood_thickness = 16 +button_diameter = 20 |