Commit 63b10a328eadd2ee357c65ee6e3fb1062c134963

Authored by Thiago Franco de Moraes
1 parent 681310a9
Exists in rotvol

Avoiding zero division in vector normalize

Showing 1 changed file with 0 additions and 1 deletions   Show diff stats
invesalius/data/styles.py
... ... @@ -1568,7 +1568,6 @@ class ReorientImageInteractorStyle(DefaultInteractorStyle):
1568 1568 axis = np.cross(p0, p1)
1569 1569 norm = np.linalg.norm(axis)
1570 1570 if norm == 0:
1571   - print "NORM 0"
1572 1571 return
1573 1572 axis = axis / norm
1574 1573 angle = np.arccos(np.dot(p0, p1)/(np.linalg.norm(p0)*np.linalg.norm(p1)))
... ...