You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
import cadquery as cq
|
|
from cqmore import Workplane
|
|
from cqmore.curve import archimedeanSpiral, circle
|
|
from cqmore.polygon import regularPolygon, star
|
|
from random import randint, choice
|
|
import functools as fnc
|
|
import itertools as it
|
|
|
|
height = 30
|
|
width = 94
|
|
length = 130
|
|
stand_height=23
|
|
|
|
socket_radius = 10.7/2
|
|
|
|
result = Workplane().box(length, width, height).edges("|Z").fillet(0.9)
|
|
|
|
|
|
result = result.workplane(offset=5).box(length-5, width-20, height, combine="cut")
|
|
|
|
result = (result.workplane(offset=10).moveTo(0, -(width/2)+5)
|
|
.box(length=length, width=0.85, height=stand_height, combine="cut"))
|
|
|
|
result = (result.workplane(offset=10).moveTo(0, (width/2)-5)
|
|
.box(length=length, width=0.85, height=stand_height, combine="cut"))
|
|
|
|
result = result.faces(">X[3]").workplane().moveTo(-25,-5).sphere(socket_radius, combine="cut")
|
|
result = result.faces(">X[1]").box(12.5,5.5,7.5, combine="cut")
|
|
|
|
result = result.faces(">X[0]").center(15, -10).text("Danger!", 8.5, -1.6, fontPath="/home/wes/cad_files/StackyardPersonalUse-16Dj.ttf")
|
|
|
|
cq.exporters.export(result, "/home/deck/cad_files/solder_stand.step")
|
|
|