Commit 42b41344 authored by Thomas Dowrick's avatar Thomas Dowrick

sksugeryvtk Issue #55: Increase tolerance in valid_rotation_matrix

parent ce45b5b7
......@@ -85,7 +85,7 @@ def validate_rotation_matrix(matrix):
# Check the orthogonality: transpose(matrix) * matrix = identity matrix.
mat = np.matmul(np.transpose(matrix), matrix)
tolerance = 1e-6
tolerance = 2e-6
identity = np.eye(3)
residual = np.absolute(mat) - identity
if np.flatnonzero(np.where(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment