scivianna-vtk
Interactive VTK/PyVista visualization with vtk.js for Panel.
Installation
pip install scivianna-vtk
Usage
import param
import numpy as np
import panel_material_ui as pmui
from scivianna_vtk import VTKPlotter, polydata_to_dict
import pyvista as pv
# Create a simple sphere
sphere = pv.Sphere(theta_resolution=30, phi_resolution=30)
# Convert to vtk.js format
vtk_data = polydata_to_dict(sphere)
# Create plotter
plotter = VTKPlotter()
plotter.update_polydata(sphere)
# Show with Panel
plotter.show()
Features
- Interactive 3D visualization using vtk.js
- Support for PolyData, UnstructuredGrid, StructuredGrid
- Cell hover information display
- Clip plane visualization and control
- Binary data transfer for efficient performance
Dependencies
- panel >= 1.4.0
- param >= 2.0.0
- numpy >= 1.24.0
- pyvista >= 0.43.0
- vtk >= 9.0.0
License
MIT
Metadata
Release files for scivianna-vtk 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scivianna_vtk-0.1.9.tar.gz | 260.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scivianna_vtk-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 520.7 kB
Release files / scivianna_vtk-0.1.9.tar.gz
| Download URL | scivianna_vtk-0.1.9.tar.gz |
|---|---|
| Size | 260.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ff5a57ce2c89f61afe6958c42646055e699d80be12751b122b330a90cba73c0
|
|
BLAKE2b-256 checksum How to use checksums |
5237d0d0f96979f9b39641e34f78330a0420da26a41b797aa6c54188e21d8f94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / scivianna_vtk-0.1.9-py3-none-any.whl
| Download URL | scivianna_vtk-0.1.9-py3-none-any.whl |
|---|---|
| Size | 260.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4158dc4286175bee131c5fe9b0b032ed2721dc523e0e4b4aa5069ee6221f3bce
|
|
BLAKE2b-256 checksum How to use checksums |
7c6e0017aaf1bf3023f76847a9a6649e35ce32427b884fa9a77283a1ce9b97cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|