diff --git a/key_decoder.py b/key_decoder.py new file mode 100644 index 0000000..a92bde4 --- /dev/null +++ b/key_decoder.py @@ -0,0 +1,61 @@ +import cadquery as cq +from cadquery import exporters + +import key_bittings +from key_bittings import BittingSpecification + +kerf = .11 + +bitting_width = 5 + +text_size = 5 +text_gap = 2 + +margins = 5 +margin_radius = 2 + + +def bitting(loc: cq.Location, name: str, depth: float): + # can only make text in a 3D workplane, so make it in 3D and extract the face + text = ( + cq.Workplane() + .text(name, fontsize=text_size, distance=1, valign="top", halign="center") + .edges("