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.
30 lines
966 B
30 lines
966 B
from cadquery import exporters
|
|
from cq_warehouse.extensions import Workplane
|
|
from cq_warehouse.fastener import *
|
|
from cq_warehouse.thread import *
|
|
from svg_path import addSvgPath
|
|
from svgpathtools import svg2paths
|
|
from cqmore.polygon import regularPolygon
|
|
import cadquery as cq
|
|
import cqmore
|
|
|
|
Workplane = cqmore.extend(Workplane)
|
|
Workplane.addSvgPath = addSvgPath
|
|
|
|
pot_knob = cq.importers.importStep("/home/deck/Downloads/pot_knob.step")
|
|
gain_result = Workplane()
|
|
probe_result = Workplane()
|
|
|
|
gain_result = gain_result.workplane(offset=13.7).center(0, -2).text("AUDIO", 3.5, 2)
|
|
gain_result = pot_knob.cut(gain_result)
|
|
|
|
probe_result = probe_result.workplane(offset=13.7).center(0, -2).text("PROBE", 3.5, 2)
|
|
probe_result = pot_knob.cut(probe_result)
|
|
|
|
cq.exporters.export(gain_result, "/home/deck/model_files/pot_knob_gain.stl")
|
|
cq.exporters.export(probe_result, "/home/deck/model_files/pot_knob_probe.stl")
|
|
|
|
try:
|
|
show_object(gain_result)
|
|
except NameError:
|
|
pass
|
|
|