Skip to content

Commit

Permalink
Reduce number of smoothing rounds
Browse files Browse the repository at this point in the history
Due to a bug (ilastik/marching_cubes#23) in the
marching cubes repo, smoothing rounds were off by one.
In order to retain consistent behavior we have to reduce the number of smoothing
rounds.

Co-Authored-By: Stuart Berg <[email protected]>
  • Loading branch information
k-dominik and stuarteberg committed Jun 23, 2020
1 parent e66ca67 commit 73864b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volumina/view3d/meshgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def march(volume, _):
def labeling_to_mesh(labeling, labels):

for label in labels:
vertices, normals, faces = march(where(labeling == label, 2, 0).astype(int).T, 4)
vertices, normals, faces = march(where(labeling == label, 2, 0).astype(int).T, 3)
data = MeshData(vertices, faces)
if normals is not None:
data._vertexNormals = normals
Expand Down

0 comments on commit 73864b0

Please sign in to comment.