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.
Metadata
Release files for napari-vedo-bridge 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| napari_vedo_bridge-0.1.0.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| napari_vedo_bridge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / napari_vedo_bridge-0.1.0.tar.gz
| Download URL | napari_vedo_bridge-0.1.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d6fba0c696391b39047a8e0a17d2884dcc431f24c4b02480200ebfe2d385aae
|
|
BLAKE2b-256 checksum How to use checksums |
e9fa073776c2c3f4246f595b6a9c030428931406d4b3e1a59ae884e83fc2f645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / napari_vedo_bridge-0.1.0-py3-none-any.whl
| Download URL | napari_vedo_bridge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62f878617870156a83afdef92eb1e993cfcd7e866a610053b6d5f9ea73952ac7
|
|
BLAKE2b-256 checksum How to use checksums |
582b1a42205fab89985ae24f49f502b186ed6eea19051dc1d7135af9b8fd434a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|