Skip to content

Commit

Permalink
fixup! chip: Generate 3D models for chip resistors
Browse files Browse the repository at this point in the history
Fillet based on width, only use height in edge cases
  • Loading branch information
dbrgn committed Sep 3, 2023
1 parent 8eb4584 commit c08f3f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ def generate_3d(
width = config.body.width
height = config.body.height

fillet = min(width, height) * 0.05
fillet = width * 0.05
if fillet * 2 >= height:
fillet = height * 0.2
edge = (length - config.gap) / 2
translation = (0, 0, height / 2)
edge_offset = length / 2 - edge
Expand Down

0 comments on commit c08f3f5

Please sign in to comment.