Skip to content

Commit

Permalink
resolve merge conflicts, v0.1.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgandor committed Dec 5, 2021
2 parents a074c78 + 0e5908b commit 55ae475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chunky3d/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 1, 6)
version_info = (0, 1, 7)
__version__ = ".".join(map(str, version_info))
4 changes: 2 additions & 2 deletions chunky3d/vtk_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def vtp_from_verts_faces(verts, faces):


from scipy.ndimage.filters import gaussian_filter
from skimage.measure import marching_cubes_lewiner
from skimage.measure import marching_cubes


def marching_cubes_with_smooth(mask, sigma=1.2, level=0.5):
Expand All @@ -535,7 +535,7 @@ def marching_cubes_with_smooth(mask, sigma=1.2, level=0.5):
mask_s = Sparse.empty_like(mask, dtype=np.float32)
mask_s.copy_from(mask)
mask_s.run(lambda d, _: (gaussian_filter(d, sigma), None), envelope=(5, 5, 5))
verts, faces, normals, values = marching_cubes_lewiner(mask_s[:, :, :], 0.5)
verts, faces, normals, values = marching_cubes(mask_s[:, :, :], 0.5)
verts = np.array(origin, dtype=np.float32) + (
verts[:, ::-1].astype(np.float32) * spacing
)
Expand Down

0 comments on commit 55ae475

Please sign in to comment.