diff --git a/generate_chip.py b/generate_chip.py index f6940b1..c690baf 100644 --- a/generate_chip.py +++ b/generate_chip.py @@ -617,7 +617,10 @@ def generate_3d( fillet = width * 0.05 if fillet * 2 >= height: fillet = height * 0.2 - edge = (length - config.gap) / 2 + gap = config.gap or config.body.gap + if gap is None: + raise RuntimeError('Generating 3D models not supported for configs without gap') + edge = (length - gap) / 2 translation = (0, 0, height / 2) edge_offset = length / 2 - edge