napari vedo bridge

napari-vedo-bridge

Transfer mesh data between napari and vedo for interactive processing

License BSD-3 PyPI Python Version tests codecov napari hub

To 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.

I/O

The plugin allows to export and import meshes and point layers. The following are supported:

napari layer typeFile FormatImportExportFeatures
Surface.vtp
Surface.vtk
Surface.obj
Surface.stl
Surface.ply
Points.vtp
Points.vtk
Points.ply
Points.obj

Interactive mesh cutting

To 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)).

To cut meshes you can use the following cutters:

  • PlaneCutter: cuts a mesh with a plane
  • SphereCutter: cuts a mesh with a sphere
  • BoxCutter: cuts a mesh with a box

To send and get data into and from the plugin, you can:

  • Retrieve the current mesh from napari (click Retrieve mesh from napari) - this imports the currently selected mesh layer from napari
  • Load a mesh from file (click Load mesh)
  • Send a mesh to napari (click Send back to napari) - this creates a new mesh layer in napari

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-vedo-bridge via pip:

pip install napari-vedo-bridge

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-vedo-bridge" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

Version:

  • 0.1.0

Last updated:

  • 19 July 2024

First released:

  • 03 July 2023

License:

Supported data:

  • Information not submitted

Save extension:

Save layers:

GitHub activity:

  • Stars: 5
  • Forks: 0
  • Issues + PRs: 4

Python versions supported:

Operating system:

Requirements:

  • numpy
  • magicgui
  • qtpy
  • vedo>=2024.5.0
  • napari-timelapse-processor
  • napari