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.2.tar.gz
(234.3 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.2-py3-none-any.whl
(234.4 kB
view details)
File details
Details for the file scivianna_vtk-0.1.2.tar.gz.
File metadata
- Download URL: scivianna_vtk-0.1.2.tar.gz
- Upload date:
- Size: 234.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6296f91a8a4d851d3f669dd1312754b88e4b7eab1558886585aa8ef0f3b572c1
|
|
| MD5 |
fb0b8f0650ffa3279b07c0dc402e1965
|
|
| BLAKE2b-256 |
57b7e0fa3748f8f1adb9a5623cbf14918dba88b5e9992d9eabe07f2d9ff45616
|
File details
Details for the file scivianna_vtk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: scivianna_vtk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 234.4 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 |
8a8009f128b9d0ca2d906980fe1155f3bf004c199caabfb09a6149abfd8f1fb6
|
|
| MD5 |
e8c17b3615baf609ce3e0c0273fb5397
|
|
| BLAKE2b-256 |
de083a4847f3587c353c7136f7cd77282f543267f00492d8e69a55a54f9f27d4
|