Skip to content

Commit

Permalink
Add information about location of failed V-Cut
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 21, 2024
1 parent 970db7a commit 8855237
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,11 +1461,12 @@ def makeVCuts(self, cuts, boundCurves=False, offset=fromMm(0)):
elif start.y == end.y or (abs(start.y - end.y) <= fromMm(0.5) and boundCurves):
self.addVCutH((start.y + end.y) / 2)
else:
message = "Cannot perform V-Cut which is not horizontal or vertical\n"
description = f"[{toMm(start.x)}, {toMm(start.y)}] -> [{toMm(end.x)}, {toMm(end.y)}]"
message = f"Cannot perform V-Cut which is not horizontal or vertical ({description}).\n"
message += "Possible cause might be:\n"
message += "- check that intended edges are truly horizonal or vertical\n"
message += "- check your tab placement if it as expected\n"
message += "You can use layer style of cuts to see them and validate them"
message += "You can use layer style of cuts to see them and validate them."
raise RuntimeError(message)

def makeMouseBites(self, cuts, diameter, spacing, offset=fromMm(0.25),
Expand Down

0 comments on commit 8855237

Please sign in to comment.