diff options
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 |