#!/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("