From d2a2273f1c595109b2b769b062a45c2c3663aa8d Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sun, 3 Sep 2023 23:57:06 +0200 Subject: [PATCH] chip: Limit absolute fillet size --- generate_chip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate_chip.py b/generate_chip.py index 8f08b4f..fff7fce 100644 --- a/generate_chip.py +++ b/generate_chip.py @@ -615,9 +615,9 @@ def generate_3d( width = config.body.width height = config.body.height - fillet = width * 0.05 - if fillet * 2 >= height: - fillet = height * 0.2 + max_fillet = 0.25 if package_type == 'CAPC' else 0.05 + fillet = min(height * 0.2, max_fillet) + gap = config.gap or config.body.gap if gap is None: raise RuntimeError('Generating 3D models not supported for configs without gap')