From 6d00e17627fe293a96c2b8689acb465e64a8bdc6 Mon Sep 17 00:00:00 2001 From: wes Date: Tue, 9 Jul 2024 12:57:06 -0400 Subject: [PATCH] beginning of amp case --- amp_case.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 amp_case.py diff --git a/amp_case.py b/amp_case.py new file mode 100644 index 0000000..a1183d3 --- /dev/null +++ b/amp_case.py @@ -0,0 +1,31 @@ +from cadquery import exporters +from cq_warehouse.extensions import Workplane +from cq_warehouse.fastener import * +from cq_warehouse.thread import * +from cqmore.curve import archimedeanSpiral, circle +from cqmore.polygon import regularPolygon, star +from cqmore.polyhedron import polarZonohedra, Polyhedron, superellipsoid +from svg_path import addSvgPath +from svgpathtools import svg2paths +import cadquery as cq +import cqmore + +amp_width = 58 +battery_width = 26 +amp_length = 38 + (battery_width * 2) +amp_height = 34 + +result = Workplane().box(amp_length, amp_width, 2) + +result = ( + result.workplane(offset=(amp_height / 2) - 1) + .center(0, -(amp_width / 2)) + .line(0, amp_width, forConstruction=True) + .vertices() + .box(amp_length, 3, amp_height) +) + +try: + show_object(result) +except NameError: + pass