- Gerber Editor: made Add Pad repeat until user exits the Add Pad through either mouse right click, or ESC key or deselecting the Add Pad menu item

- Gerber and Geometry Editors: fixed some issues with the Add Arc/Add Semidisc; in mode 132, the norm() function was not the one from numpy but from a FlatCAM Class. Also fixed some of the texts and made sure that when changing the mode, the current points are reset to prepare for the newly selected mode.
This commit is contained in:
Marius Stanciu
2019-04-23 13:13:10 +03:00
parent 929d70542c
commit 49120c088e
5 changed files with 65 additions and 32 deletions

View File

@@ -7701,7 +7701,11 @@ def three_point_circle(p1, p2, p3):
b2 = dot((p3 - p2), array([[0, 1], [-1, 0]], dtype=float32))
# Params
T = solve(transpose(array([-b1, b2])), a1 - a2)
try:
T = solve(transpose(array([-b1, b2])), a1 - a2)
except Exception as e:
log.debug("camlib.three_point_circle() --> %s" % str(e))
return
# Center
center = a1 + b1 * T[0]