Okay, a little background here. I made a script that plots a dataset as 3d line plots using mlab.plot3d(), multiple times in Mayavi, after reading it from an xlsx file. Now, I am trying to make a web app to see the created 3d models in a web browser interactively. After some search, I found xtk and thought about saving the Mayavi output as a .vtk file, and viewing it online using xtk.
Question 1: is it a stupid plan? are there easier ways? Question 2: if it's feasible, how do I output all the components of a mlab scene into a single vtk file?
I searched and found the save_output() function from the mayavi pipeline children using record, but that only seems to work for single objects. Any idea how to do it for the whole scene?