Transfer mesh data between napari and vedo for interactive processing
Project description
napari-vedo-bridge
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 type | File Format | Import | Export | Features |
---|---|---|---|---|
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 planeSphereCutter
: cuts a mesh with a sphereBoxCutter
: 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file napari_vedo_bridge-0.1.0.tar.gz
.
File metadata
- Download URL: napari_vedo_bridge-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d6fba0c696391b39047a8e0a17d2884dcc431f24c4b02480200ebfe2d385aae |
|
MD5 | fecfd76636b5a05fcceecd0922a49ab3 |
|
BLAKE2b-256 | e9fa073776c2c3f4246f595b6a9c030428931406d4b3e1a59ae884e83fc2f645 |
File details
Details for the file napari_vedo_bridge-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: napari_vedo_bridge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f878617870156a83afdef92eb1e993cfcd7e866a610053b6d5f9ea73952ac7 |
|
MD5 | 61a958de72aa316b0d5b65028671b21c |
|
BLAKE2b-256 | 582b1a42205fab89985ae24f49f502b186ed6eea19051dc1d7135af9b8fd434a |