Skip to content

Commit

Permalink
chip: Limit absolute fillet size
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Sep 3, 2023
1 parent 400f56c commit d2a2273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate_chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d2a2273

Please sign in to comment.