pyvista / pyvista-support

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

How do you make the interactive surface plots for rotation, zoom etc #429

Open trhoye opened 3 years ago

trhoye commented 3 years ago

Description

Interactive surface plots for rotation, zoom etc

How do you make interactive plots as shown in your link below ? This must be the future (Harry Potter style) as figures in reports / publications / presentations .. Can these fgures be added in

Example Data

https://docs.pyvista.org/index.html#maps-and-geoscience

trhoye commented 3 years ago

Have tried to store image (terrain model) as .ply file .. opened with an associated app (interactive image in one colour only) 👎 Surfer (Golden Software app) can store a terrain as a 3D .pdf file (interactive file allowing rotate, zoom pan) .. still not satisfied with the output.👎

akaszynski commented 3 years ago

Sorry for the delayed response.

Those figures are generated via ipygany and panel and are built for the web via javascript (really, three.js and vtk.js). I'm not aware of a plugin for Microsoft Office that will let you view 3d models, so your best bet is to go with HTML if you want something interactive.

As for exporting the model/mesh and using an external viewer, obj files have some decent support, but also some issues (as you noted) regarding textures and colors. For a possible solution, see https://blender.stackexchange.com/a/47950