Skip to content

Commit 40b4ee8

Browse files
committed
Working version
Checked that works with vtk files. Also checked for consistency when using the same surface twice.
1 parent 79d6d27 commit 40b4ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class P2PDistance(BaseInterface):
6363
input_spec = P2PDistanceInputSpec
6464
output_spec = P2PDistanceOutputSpec
6565

66-
def _triangle_area(A, B, C):
66+
def _triangle_area(self, A, B, C):
6767
ABxAC = euclidean(A,B) * euclidean(A,C)
6868
prod = np.dot(np.array(B)-np.array(A),np.array(C)-np.array(A))
6969
angle = np.arccos( prod / ABxAC )

0 commit comments

Comments
 (0)