edsaac / stpyvista

🧊 Show pyvista 3D visualizations in streamlit
https://stpyvista.streamlit.app
GNU General Public License v3.0
59 stars 4 forks source link

Interactions #5

Open giiyms opened 1 year ago

giiyms commented 1 year ago

Hello,

Is there any way to interact with the component? i.e. if you click a node, it will return the node number to the python code

Thanks

edsaac commented 1 year ago

Not as it is right now.

threejs has room for interactivity (e.g., https://threejs.org/examples/#webgl_interactive_voxelpainter), but some of that functionality is not implemented in pythreejs which is what this component uses.

A better option for interactivity might come from holoviz/panel (check: https://panel.holoviz.org/gallery/demos/VTKInteractive.html), which is another backend that PyVista uses to export the renders as HTML -- which is what streamlit takes as components.