1 changed files with 31 additions and 0 deletions
@ -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 |
Loading…
Reference in new issue