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
Mesh Processing Functions
The 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:
compute_normals: Compute normals for the given mesh.shrink: Shrink the given mesh.join: Join the given meshes.subdivide: Subdivide the given mesh.decimate: Decimate the given mesh.decimate_pro: Decimate the given mesh using the Pro algorithm.decimate_binned: Decimate the given mesh using the Binned algorithm.smooth: Smooth the given mesh.fill_holes: Fill holes in the given mesh.inside_points: Get the points inside the given mesh.extrude: Extrude the given mesh.split: Split the given mesh into connected components.extract_largest_region: Extract the largest region from the given mesh.binarize: Binarize the given mesh.
Pointcloud Processing Functions
The 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:
smooth_points: Smooth the given points.decimate_points: Decimate the given points.cluster_points: Cluster the given points.remove_outliers: Remove outliers from the given points.compute_normals_points: Compute normals for the given points.extract_largest_cluster: Extract the largest cluster from the given points.
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.3.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 | Provenance | Actions |
|---|---|---|---|---|
| napari_vedo_bridge-0.3.0.tar.gz | 598.3 kB | Without provenance | Details for napari_vedo_bridge-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napari_vedo_bridge-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for napari_vedo_bridge-0.3.0-py3-none-any.whl |
Total release size: 623.6 kB
Release files / napari_vedo_bridge-0.3.0.tar.gz
| Download URL | napari_vedo_bridge-0.3.0.tar.gz |
|---|---|
| Size | 598.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d20e89058d44f87ca283a57425a8d3b4b3acfe8d191690a2ceb3603f4a74e06b
|
|
BLAKE2b-256 checksum How to use checksums |
638aedefad388f3496c43562ae81492434379b78c7e95a5bd91d845254072000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / napari_vedo_bridge-0.3.0-py3-none-any.whl
| Download URL | napari_vedo_bridge-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
631c4f039b921081932156a41d38d73adf43b6acdf5e5b3da146923dc271bf3f
|
|
BLAKE2b-256 checksum How to use checksums |
0e55a305f264702fc42a475531422a24f146fe049db97f1023c96d2e9101259b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for napari-vedo-bridge 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.