Skip to content

Commit 8eec27c

Browse files
committed
[bug] fix stalled isosurface in octave 4 and 5
1 parent aff56c4 commit 8eec27c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tools/PoissonRecon

Submodule PoissonRecon updated 117 files

vol2surf.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@
8989
else
9090
levelmask = int8(newimg >= isovalues(i));
9191
end
92-
[levelel, levelno] = isosurface(levelmask, 0.5);
92+
[isoct, octver] = isoctavemesh;
93+
if (~isoct || sscanf(octver, '%d') > 5)
94+
[levelel, levelno] = isosurface(levelmask, 0.5);
95+
else
96+
[levelno, levelel] = binsurface(levelmask);
97+
end
9398
if (~isempty(levelel))
9499
if (isstruct(opt) && isfield(opt, 'autoregion'))
95100
if (opt.autoregion)

0 commit comments

Comments
 (0)