From 7baec10b5c7e454276fafee86fdf91409b242715 Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 9 Dec 2016 11:25:11 +0100 Subject: organize files in a package --- cad/__init__.py | 0 cad/assembly.py | 12 ++++++++++++ cad/parameters.py | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 cad/__init__.py create mode 100644 cad/assembly.py create mode 100644 cad/parameters.py (limited to 'cad') diff --git a/cad/__init__.py b/cad/__init__.py new file mode 100644 index 0000000..e69de29 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 -- cgit v1.2.3