From 85c7dda27c9468a9dd89df084ffd0db4acb1eba0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 May 2022 17:44:57 -0400 Subject: [PATCH] Add template for marking bitting positions with a fine point marker --- marker_template.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 marker_template.py diff --git a/marker_template.py b/marker_template.py new file mode 100644 index 0000000..d2fc7df --- /dev/null +++ b/marker_template.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python3 + +import cadquery as cq +from cadquery import exporters + +import key_bittings +from key_bittings import BittingSpecification + +extra_key_thickness = 0.8 +extra_key_width = 0.2 + +marker_width = 1.25 + + +def marker_template(spec: BittingSpecification, thickness=1, fillet=0.4): + return ( + cq.Workplane() + .box(spec.TFC + spec.positions * spec.BCC, + max(spec.depths.values()) + thickness * 2, + spec.key_thickness + thickness) + + .faces(">Z").vertices("