Skip to content

Commit cb8a6c8

Browse files
committed
[bug] matlab isosurface transpose x/y and shift by 0.5
1 parent 7279fd0 commit cb8a6c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vol2surf.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
[isoct, octver] = isoctavemesh;
9393
if (~isoct || sscanf(octver, '%d') > 5)
9494
[levelel, levelno] = isosurface(levelmask, 0.5);
95+
levelno = levelno(:, [2 1 3]) - 0.5;
9596
else
9697
[levelno, levelel] = binsurface(levelmask);
9798
end

0 commit comments

Comments
 (0)