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