{"name":"napari-vedo-bridge","display_name":"napari vedo bridge","visibility":"public","icon":"","categories":[],"schema_version":"0.2.1","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-vedo-bridge.vedo_viewer","title":"Vedo mesh viusdalization widget","python_name":"napari_vedo_bridge._widgets:VedoWidget","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.cutter_widget","title":"Interactive mesh cutting with Vedo","python_name":"napari_vedo_bridge._cutter_widget:VedoCutter","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.write_points","title":"Save points layer to vtp","python_name":"napari_vedo_bridge._writer:write_points","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.write_surfaces","title":"Save surface layer to vtp","python_name":"napari_vedo_bridge._writer:write_surfaces","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.load_points","title":"Load points from disk","python_name":"napari_vedo_bridge._reader:get_reader","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.load_surfaces","title":"Load surfaces from disk","python_name":"napari_vedo_bridge._reader:get_reader","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.compute_normals","title":"Compute normals on surface","python_name":"napari_vedo_bridge._mesh:compute_normals","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.shrink","title":"Shrink surface","python_name":"napari_vedo_bridge._mesh:shrink","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.subdivide","title":"Subdivide surface","python_name":"napari_vedo_bridge._mesh:subdivide","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.decimate","title":"Decimate surface","python_name":"napari_vedo_bridge._mesh:decimate","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.decimate_pro","title":"Decimate surface (Pro algorithm)","python_name":"napari_vedo_bridge._mesh:decimate_pro","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.decimate_binned","title":"Decimate surface (Binned algorithm)","python_name":"napari_vedo_bridge._mesh:decimate_binned","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.smooth","title":"Smooth surface","python_name":"napari_vedo_bridge._mesh:smooth","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.fill_holes","title":"Fill holes in surface","python_name":"napari_vedo_bridge._mesh:fill_holes","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.split","title":"Split surface","python_name":"napari_vedo_bridge._mesh:split","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.extract_largest_region","title":"Extract largest region of surface","python_name":"napari_vedo_bridge._mesh:extract_largest_region","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.binarize","title":"Binarize surface","python_name":"napari_vedo_bridge._mesh:binarize","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.smooth_points_1d","title":"Smooth points (moving lest-squares 1D)","python_name":"napari_vedo_bridge._points:smooth_mls_1d","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.smooth_points_2d","title":"Smooth points (moving least-squares 2D)","python_name":"napari_vedo_bridge._points:smooth_mls_2d","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.remove_outliers","title":"Remove outliers from points","python_name":"napari_vedo_bridge._points:remove_outliers","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.mouse_limb1","title":"Mouse limb 1","python_name":"napari_vedo_bridge._sample_data:mouse_limb1","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.mouse_limb2","title":"Mouse limb 2","python_name":"napari_vedo_bridge._sample_data:mouse_limb2","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.mouse_limb3","title":"Mouse limb 3","python_name":"napari_vedo_bridge._sample_data:mouse_limb3","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.beethoven","title":"Beethoven","python_name":"napari_vedo_bridge._sample_data:beethoven","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.bunny","title":"Bunny","python_name":"napari_vedo_bridge._sample_data:bunny","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.cow","title":"Cow","python_name":"napari_vedo_bridge._sample_data:cow","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.apple","title":"Apple","python_name":"napari_vedo_bridge._sample_data:apple","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-vedo-bridge.data.panther","title":"Panther","python_name":"napari_vedo_bridge._sample_data:panther","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":[{"command":"napari-vedo-bridge.load_points","filename_patterns":["*.vtp"],"accepts_directories":true},{"command":"napari-vedo-bridge.load_surfaces","filename_patterns":["*.vtp","*.vtk","*.obj","*.stl","*.ply"],"accepts_directories":true}],"writers":[{"command":"napari-vedo-bridge.write_points","layer_types":["points?"],"filename_extensions":[".vtp"],"display_name":""},{"command":"napari-vedo-bridge.write_surfaces","layer_types":["surface"],"filename_extensions":[".vtp",".vtk",".obj",".stl",".ply"],"display_name":""}],"widgets":[{"command":"napari-vedo-bridge.cutter_widget","display_name":"Mesh cutter","autogenerate":true},{"command":"napari-vedo-bridge.vedo_viewer","display_name":"Vedo mesh viewer","autogenerate":false},{"command":"napari-vedo-bridge.compute_normals","display_name":"Compute normals","autogenerate":false},{"command":"napari-vedo-bridge.shrink","display_name":"Shrink mesh","autogenerate":false},{"command":"napari-vedo-bridge.subdivide","display_name":"Subdivide mesh","autogenerate":false},{"command":"napari-vedo-bridge.decimate","display_name":"Decimate mesh","autogenerate":false},{"command":"napari-vedo-bridge.decimate_pro","display_name":"Decimate mesh (Pro algorithm)","autogenerate":false},{"command":"napari-vedo-bridge.decimate_binned","display_name":"Decimate mesh (Binned algorithm)","autogenerate":false},{"command":"napari-vedo-bridge.smooth","display_name":"Smooth mesh","autogenerate":false},{"command":"napari-vedo-bridge.fill_holes","display_name":"Fill holes","autogenerate":false},{"command":"napari-vedo-bridge.split","display_name":"Split mesh","autogenerate":false},{"command":"napari-vedo-bridge.extract_largest_region","display_name":"Extract largest region","autogenerate":false},{"command":"napari-vedo-bridge.binarize","display_name":"Binarize mesh","autogenerate":false},{"command":"napari-vedo-bridge.smooth_points_1d","display_name":"Smooth points (moving least-squares 1D)","autogenerate":false},{"command":"napari-vedo-bridge.smooth_points_2d","display_name":"Smooth points (moving least-squares 2D)","autogenerate":false},{"command":"napari-vedo-bridge.remove_outliers","display_name":"Remove outliers","autogenerate":false}],"sample_data":[{"command":"napari-vedo-bridge.data.mouse_limb1","key":"mouse_limb1","display_name":"Mouse limb 1"},{"command":"napari-vedo-bridge.data.mouse_limb2","key":"mouse_limb2","display_name":"Mouse limb 2"},{"command":"napari-vedo-bridge.data.mouse_limb3","key":"mouse_limb3","display_name":"Mouse limb 3"},{"command":"napari-vedo-bridge.data.beethoven","key":"beethoven","display_name":"Beethoven"},{"command":"napari-vedo-bridge.data.bunny","key":"bunny","display_name":"Bunny"},{"command":"napari-vedo-bridge.data.cow","key":"cow","display_name":"Cow"},{"command":"napari-vedo-bridge.data.apple","key":"apple","display_name":"Apple"},{"command":"napari-vedo-bridge.data.panther","key":"panther","display_name":"Panther"}],"themes":null,"menus":{"napari/file/io":[{"command":"napari-vedo-bridge.load_points","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.load_surfaces","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.write_points","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.write_surfaces","when":null,"group":null,"alt":null}],"napari/layers/visualize":[{"command":"napari-vedo-bridge.vedo_viewer","when":null,"group":null,"alt":null}],"napari/layers/transform":[{"command":"napari-vedo-bridge.cutter_widget","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.split","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.shrink","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.subdivide","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.compute_normals","when":null,"group":null,"alt":null}],"napari/layers/filter":[{"command":"napari-vedo-bridge.smooth","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.fill_holes","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.decimate","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.decimate_pro","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.decimate_binned","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.smooth_points_1d","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.smooth_points_2d","when":null,"group":null,"alt":null}],"napari/layers/segment":[{"command":"napari-vedo-bridge.extract_largest_region","when":null,"group":null,"alt":null},{"command":"napari-vedo-bridge.binarize","when":null,"group":null,"alt":null}]},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.4","name":"napari-vedo-bridge","version":"0.3.0","dynamic":["license-file"],"platform":null,"supported_platform":null,"summary":"Transfer mesh data between napari and vedo for interactive processing","description":"# napari-vedo-bridge\n\n[![License BSD-3](https://img.shields.io/pypi/l/napari-vedo-bridge.svg?color=green)](https://github.com/jo-mueller/napari-vedo-bridge/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-vedo-bridge.svg?color=green)](https://pypi.org/project/napari-vedo-bridge)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-vedo-bridge.svg?color=green)](https://python.org)\n[![tests](https://github.com/jo-mueller/napari-vedo-bridge/workflows/tests/badge.svg)](https://github.com/jo-mueller/napari-vedo-bridge/actions)\n[![codecov](https://codecov.io/gh/jo-mueller/napari-vedo-bridge/branch/main/graph/badge.svg)](https://codecov.io/gh/jo-mueller/napari-vedo-bridge)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-vedo-bridge)](https://napari-hub.org/plugins/napari-vedo-bridge)\n\nTo be able to use interactive processing of meshes in napari, this plugin provides a bridge to the vedo library. It allows to transfer meshes between napari and vedo and to use the interactive processing capabilities of vedo in napari. \n\n## I/O\n\nThe plugin allows to export and import meshes and point layers. The following are supported:\n\n| napari layer type | File Format | Import | Export | Features |\n|:------------------:|:-----------:|:------:|:------:|:--------:|\n| Surface | .vtp | ✓ | ✓ |  ✓ |\n| Surface | .vtk | ✓ | ✓ |  ✗ |\n| Surface | .obj | ✓ | ✓ |  ✗ |\n| Surface | .stl | ✓ | ✓ |  ✗ |\n| Surface | .ply | ✓ | ✓ |  ✗ |\n| Points | .vtp | ✓ | ✓ |  ✓ |\n| Points | .vtk | ✓ | ✓ |  ✗ |\n| Points | .ply | ✓ | ✓ |  ✗ |\n| Points | .obj | ✓ | ✓ |  ✗ |\n\n## Interactive mesh cutting\nTo interactively cut meshes in the napari-vedo MeshCutter, install the plugin (see below) and open the plugin it from the napari plugins menu (`Plugins > Mesh Cutter (napari-vedo-bridge)`). \n\nTo cut meshes you can use the following cutters:\n- `PlaneCutter`: cuts a mesh with a plane\n- `SphereCutter`: cuts a mesh with a sphere\n- `BoxCutter`: cuts a mesh with a box\n\n![](https://github.com/jo-mueller/napari-vedo-bridge/raw/main/docs/imgs/screenshot_box_cutter.png)\n\nTo send and get data into and from the plugin, you can:\n\n- Retrieve the current mesh from napari (click `Retrieve mesh from napari`) - this imports the **currently selected mesh layer** from napari\n- Load a mesh from file (click `Load mesh`)\n- Send a mesh to napari (click `Send back to napari`) - this creates a new mesh layer in napari\n\n## Mesh Processing Functions\n\nThe plugin also provides a set of mesh processing functions that can be used in napari. These functions are wrapped from the vedo library and provide various mesh processing capabilities. The following functions are available:\n\n- `compute_normals`: Compute normals for the given mesh.\n- `shrink`: Shrink the given mesh.\n- `join`: Join the given meshes.\n- `subdivide`: Subdivide the given mesh.\n- `decimate`: Decimate the given mesh.\n- `decimate_pro`: Decimate the given mesh using the Pro algorithm.\n- `decimate_binned`: Decimate the given mesh using the Binned algorithm.\n- `smooth`: Smooth the given mesh.\n- `fill_holes`: Fill holes in the given mesh.\n- `inside_points`: Get the points inside the given mesh.\n- `extrude`: Extrude the given mesh.\n- `split`: Split the given mesh into connected components.\n- `extract_largest_region`: Extract the largest region from the given mesh.\n- `binarize`: Binarize the given mesh.\n\n## Pointcloud Processing Functions\n\nThe plugin also provides a set of pointcloud processing functions that can be used in napari. These functions are wrapped from the vedo library and provide various pointcloud processing capabilities. The following functions are available:\n\n- `smooth_points`: Smooth the given points.\n- `decimate_points`: Decimate the given points.\n- `cluster_points`: Cluster the given points.\n- `remove_outliers`: Remove outliers from the given points.\n- `compute_normals_points`: Compute normals for the given points.\n- `extract_largest_cluster`: Extract the largest cluster from the given points.\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n<!--\nDon't miss the full getting started guide to set up your new package:\nhttps://github.com/napari/cookiecutter-napari-plugin#getting-started\n\nand review the napari docs for plugin developers:\nhttps://napari.org/stable/plugins/index.html\n-->\n\n## Installation\n\nYou can install `napari-vedo-bridge` via [pip]:\n\n    pip install napari-vedo-bridge\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-vedo-bridge\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please [file an issue] along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n","description_content_type":"text/markdown","keywords":null,"home_page":null,"download_url":null,"author":"Johannes Soltwedel, Marco Musy","author_email":"johannes_richard.soltwedel@tu-dresden.de","maintainer":null,"maintainer_email":null,"license":"Copyright (c) 2023, Johannes Soltwedel, Marco Musy\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","classifier":["Development Status :: 2 - Pre-Alpha","Framework :: napari","Intended Audience :: Developers","License :: OSI Approved :: BSD License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.8","Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Topic :: Scientific/Engineering :: Image Processing"],"requires_dist":["numpy","magicgui","qtpy","vedo>=2024.5.2","napari-timelapse-processor","napari","tox; extra == \"testing\"","pytest; extra == \"testing\"","pytest-cov; extra == \"testing\"","pytest-qt; extra == \"testing\"","napari; extra == \"testing\"","pyqt5; extra == \"testing\""],"requires_python":">=3.9","requires_external":null,"project_url":["Bug Tracker, https://github.com/jo-mueller/napari-vedo-bridge/issues","Documentation, https://github.com/jo-mueller/napari-vedo-bridge#README.md","Source Code, https://github.com/jo-mueller/napari-vedo-bridge","User Support, https://github.com/jo-mueller/napari-vedo-bridge/issues"],"provides_extra":["testing"],"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}