Skip to main content

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.0.tar.gz (244.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scivianna_vtk-0.1.0-py3-none-any.whl (244.9 kB view details)

Uploaded Python 3

File details

Details for the file scivianna_vtk-0.1.0.tar.gz.

File metadata

  • Download URL: scivianna_vtk-0.1.0.tar.gz
  • Upload date:
  • Size: 244.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scivianna_vtk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1641192973b7be980102b2380594b343c20ab1de01dd7f149e072ab1eec021a6
MD5 11df52adc11a9ce73ebc1de0224b7372
BLAKE2b-256 b8465447ef74355b5e5e2df02023bff4595cee96c8944a9e85b85cd8d528c4da

See more details on using hashes here.

File details

Details for the file scivianna_vtk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scivianna_vtk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 244.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scivianna_vtk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93ed2bf35d5ef07a86ff5bd32cd687a06e9c23bf751386b5df3945ce33323349
MD5 80ce7c2a12aaa07457119f8e69e5465e
BLAKE2b-256 a269e9adc4783d4c92ce6bebacca8cd4d449d85f167df947d11fcd82a3e933d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page