diff --git a/napari_process_points_and_surfaces/__init__.py b/napari_process_points_and_surfaces/__init__.py index 87d655e..616cff5 100644 --- a/napari_process_points_and_surfaces/__init__.py +++ b/napari_process_points_and_surfaces/__init__.py @@ -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, diff --git a/napari_process_points_and_surfaces/_tests/test_function.py b/napari_process_points_and_surfaces/_tests/test_function.py index 584502a..538b35b 100644 --- a/napari_process_points_and_surfaces/_tests/test_function.py +++ b/napari_process_points_and_surfaces/_tests/test_function.py @@ -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, @@ -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) diff --git a/napari_process_points_and_surfaces/_vedo.py b/napari_process_points_and_surfaces/_vedo.py index 2f885d8..8fa5da5 100644 --- a/napari_process_points_and_surfaces/_vedo.py +++ b/napari_process_points_and_surfaces/_vedo.py @@ -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. @@ -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. @@ -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. @@ -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.