Skip to content

Commit

Permalink
disabled dysfunctional functions / menus
Browse files Browse the repository at this point in the history
see #57
  • Loading branch information
haesleinhuepf committed Feb 19, 2023
1 parent 4300db3 commit 538e4df
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions napari_process_points_and_surfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
to_napari_surface_data,
to_napari_points_data,
smooth_surface,
subdivide_loop_vedo,
subdivide_linear,
_subdivide_loop_vedo,
_subdivide_linear,
subdivide_adaptive,
subdivide_butterfly,
_subdivide_butterfly,
sample_points_from_surface,
subsample_points,
create_convex_hull_from_points,
Expand Down
12 changes: 6 additions & 6 deletions napari_process_points_and_surfaces/_tests/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def test_something2():
to_napari_surface_data,
to_napari_points_data,
smooth_surface,
subdivide_loop_vedo,
subdivide_linear,
_subdivide_loop_vedo,
_subdivide_linear,
subdivide_adaptive,
subdivide_butterfly,
_subdivide_butterfly,
sample_points_from_surface,
subsample_points,
create_convex_hull_from_surface,
Expand All @@ -84,10 +84,10 @@ def test_something2():
napari_points = to_napari_points_data(vedo_points)

smooth_surface(surface)
subdivide_loop_vedo(surface)
_subdivide_loop_vedo(surface)
subdivide_adaptive(surface)
subdivide_linear(surface)
subdivide_butterfly(surface)
_subdivide_linear(surface)
_subdivide_butterfly(surface)
sample_points_from_surface(surface)
subsample_points(napari_points)
create_convex_hull_from_points(napari_points)
Expand Down
24 changes: 12 additions & 12 deletions napari_process_points_and_surfaces/_vedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ def smooth_surface(surface: "napari.types.SurfaceData",
return to_napari_surface_data(smooth_mesh)


@register_function(menu="Surfaces > Subdivide loop (vedo, nppas)")
def subdivide_loop_vedo(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
#@register_function(menu="Surfaces > Subdivide loop (vedo, nppas)")
def _subdivide_loop_vedo(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
"""
Make a mesh more detailed by subdividing in a loop.
Expand All @@ -224,10 +224,10 @@ def subdivide_loop_vedo(surface: "napari.types.SurfaceData",
return to_napari_surface_data(mesh_out)


@register_function(menu="Surfaces > Subdivide linear (vedo, nppas)")
def subdivide_linear(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
#@register_function(menu="Surfaces > Subdivide linear (vedo, nppas)")
def _subdivide_linear(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
"""
Make a mesh more detailed by linear subdivision.
Expand All @@ -250,7 +250,7 @@ def subdivide_linear(surface: "napari.types.SurfaceData",
return to_napari_surface_data(mesh_out)


@register_function(menu="Surfaces > Subdivide adaptive (vedo, nppas)")
#@register_function(menu="Surfaces > Subdivide adaptive (vedo, nppas)")
def subdivide_adaptive(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1,
maximum_edge_length: float = 0.
Expand Down Expand Up @@ -285,9 +285,9 @@ def subdivide_adaptive(surface: "napari.types.SurfaceData",


@register_function(menu="Surfaces > Subdivide butterfly (vedo, nppas)")
def subdivide_butterfly(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
def _subdivide_butterfly(surface: "napari.types.SurfaceData",
number_of_iterations: int = 1
) -> "napari.types.SurfaceData":
"""
Make a mesh more detailed by adaptive subdivision.
Expand Down

0 comments on commit 538e4df

Please sign in to comment.