- 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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user