florianfesti / boxes

Boxes.py - laser cutting boxes and more
GNU General Public License v3.0
957 stars 343 forks source link

An error occurred! local variable 'poly' referenced before assignment #671

Closed DillonSimeone closed 2 months ago

DillonSimeone commented 2 months ago

Describe the bug With the regular star box, if five sides are selected with a radius of 10, and height of 30, it errors out. Likely due to the shape being impossible to make.

To Reproduce URL below:

https://www.festi.info/boxes.py/RegularStarBox?FingerJoint_angle=90.0&FingerJoint_style=rectangular&FingerJoint_surroundingspaces=2.0&FingerJoint_bottom_lip=0.0&FingerJoint_edge_width=1.0&FingerJoint_extra_length=0.0&FingerJoint_finger=2.0&FingerJoint_play=0.0&FingerJoint_space=2.0&FingerJoint_width=1.0&h=30&outside=0&radius=11&n=5&thickness=3.0&format=svg&tabs=0.0&qr_code=0&debug=0&labels=0&reference=0&inner_corners=corner&burn=0.1&language=en&render=0

Expected behavior A message explaining that physics sucks so those values can't be used.