Interactive VTK/PyVista visualization with vtk.js for Panel
Project description
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
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
scivianna_vtk-0.1.3.tar.gz
(234.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
scivianna_vtk-0.1.3-py3-none-any.whl
(234.5 kB
view details)
File details
Details for the file scivianna_vtk-0.1.3.tar.gz.
File metadata
- Download URL: scivianna_vtk-0.1.3.tar.gz
- Upload date:
- Size: 234.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35828fa757077b79a5dee53420684b1dfc8cdebd933920ac510535b61ee14b3
|
|
| MD5 |
01a118f8a8155cc72e7089b94c678af4
|
|
| BLAKE2b-256 |
d470b57598c18b41694bc7e43d1593015e0736be01e2439e2349df45b68188a9
|
File details
Details for the file scivianna_vtk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: scivianna_vtk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 234.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f7700f03a20ece59419d1937551027c350d3f99f2718697dbb0b6f25d7058f9
|
|
| MD5 |
eefedf94ab37d6edc589ff963f97a96b
|
|
| BLAKE2b-256 |
7ff7686e3b48b396b83634b3e49ee5f2e1f11a42c795b423a9b31c70e0ce2029
|