Skip to content

Commit 7e3b873

Browse files
fix: wrong indexing for contacts in cross_sectional_area
1 parent 1661084 commit 7e3b873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kimimaro/utility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def cross_sectional_area(
167167
idx = mapping[tuple(vert)]
168168
normal = normals[i]
169169

170-
if areas[idx] == 0 or (repair_contacts and contacts[i] > 0):
170+
if areas[idx] == 0 or (repair_contacts and contacts[idx] > 0):
171171
areas[idx], contacts[idx] = xs3d.cross_sectional_area(
172172
binimg, vert,
173173
normal, anisotropy,

0 commit comments

Comments
 (0)