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("