Skip to content

Commit

Permalink
bugfix: the last surface was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Apr 12, 2023
1 parent f966fc3 commit 98e22bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napari_process_points_and_surfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def all_labels_to_surface(labels: "napari.types.LabelsData", add_label_id_as_val
# Create a surface for every label
mesh_list = []
all_values = []
for label in np.unique(labels)[:-1]:
for label in np.unique(labels)[1:]:
print("label", label)
verts, faces, normals, values = marching_cubes(labels==label)
if add_label_id_as_value:
Expand Down

0 comments on commit 98e22bc

Please sign in to comment.