VTK Local Rendering using WASM
Project description
VTK Local Rendering using VTK/WASM to match server side rendering pipeline on the client side. The current code base is still at its infancy but we aim to make it the default implementation for local rendering using VTK/ParaView with trame.
License
This library is OpenSource and follow the Apache Software License
Installation
pip install trame-vtklocal
# We need a VTK that has its wasm counterpart
# This is the first version available with it
# For ParaView (not yet supported), VTK don't need to be installed
pip install "vtk==9.3.20240525.dev0" --extra-index-url https://wheels.vtk.org
Development
Build and install the Vue components
cd vue-components
npm i
npm run build
cd -
Install the library
pip install -e .
Running examples
pip install trame trame-vtklocal trame-vuetify trame-vtk
# We need a VTK that has its wasm counterpart
# This is the first version available with it
# For ParaView (not yet supported), VTK don't need to be installed
pip install "vtk==9.3.20240418.dev0" --extra-index-url https://wheels.vtk.org
# regular trame app
python ./examples/vtk/cone.py
Some example are meant to test and validate WASM rendering. Some will default for remote rendering but if you want to force them to use WASM just run export USE_WASM=1 before executing them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trame-vtklocal-0.3.3.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for trame_vtklocal-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b4a1ad5f5832dc749adae144a94c13b0de9b120f504355fc7ccc4af52c0f33 |
|
MD5 | 25842e33db35cacb7ee34b536048f195 |
|
BLAKE2b-256 | 3bc4a3da2cdbb4b5883374be13b54e8a2ef1f27881c430fbb0ef1d11426f5c29 |