pyvista / pyvista-support

[moved] Please head over to the Discussions tab of the PyVista repository
https://github.com/pyvista/pyvista/discussions
59 stars 4 forks source link

VTKjs export issue? #340

Open jacobgrasmick opened 3 years ago

jacobgrasmick commented 3 years ago

Description

I was wondering if anyone else has experienced issues with export_vtkjs? It seems when I export, the scalars are not saved, nor is the axes scale (e.g. set_scale).

Here is an example of a scene created: image

And here is the scene render when loading to viewer.pyvista.org: image

akaszynski commented 3 years ago

The js export functionality in VTK < 9.0 was a python function that has quite a few limitations. I'm aware that VTK has a scene exporter in either in 9.0 or in the upcoming release, but I've not experimented with it. If you discover how to use it from Python, we can add that code to this project.

banesullivan commented 3 years ago

This has been on my radar as well. I've been meaning to resolve these outstanding issues and see if we can use the new exporter in VTK>=9