python - Can I output a mayavi plot as .vtk file to embed in a web app? -
okay, little background here. made script plots dataset 3d line plots using mlab.plot3d(), multiple times in mayavi, after reading xlsx file. now, trying create web app see created 3d models in web browser interactively. after search, found xtk , thought saving mayavi output .vtk file, , viewing online using xtk.
question 1: stupid plan? there easier ways? question 2: if it's feasible, how output components of mlab scene single vtk file?
i searched , found save_output() function mayavi pipeline children using record, seems work single objects. thought how whole scene?
if have installed mayavi, you'll have included tvtk python library, 1 of dependencies. documentation gives examples how can write structures vtk file using write_data function.
python web-applications enthought mayavi xtk
No comments:
Post a Comment