Thanks Sebastien… realised I may be attempting the impossible / hitting my head against a brick wall. Ultimately I’m try to generate a web app that takes a user input runs a calculation on the server side, and then plots the vtk render of the results in my website. I also want to use vtk.js because it has useful cell and point picker which I want to integrate as a feature in my plots. The plot I am trying to achieve is a mesh, however the color scalar values are calculated based on the input on the client web side.
Perhaps the best solution is to send the calculated geometry and color scalar data (i.e xyz coords, cell connectivity and color scalar values for the nodes) from the server side back as JSON to the JavaScript on the client side which loops through the raw data generating the plot?
I had a look at panel, however it didn’t allow me to readily customise callbacks such as point or cell picker functions which would be required for my web app. If you have any advice on this as a route would greatly appreciate it.
Thanks again for your pointers so far!!