skoch9 / meshplot

Plot 3D triangle meshes
GNU General Public License v3.0
148 stars 37 forks source link

Jupyter free version #2

Closed teseoch closed 5 years ago

teseoch commented 5 years ago

It would be nice to have the same viewer on an html generated file without the notebook.

A little bit like plotly

jiangzhongshi commented 5 years ago

This would be great to have. https://github.com/mrdoob/three.js/issues/4952 this looks relevant.

@skoch9 Is it easy to do?

jiangzhongshi commented 5 years ago

I looked up a bit, and it's possible to do the following

from ipywidgets.embed import embed_minimal_html
vw = viewer.plot(V,F, return_plot=True)
embed_minimal_html('temp.html',views=[vw._renderer])
skoch9 commented 5 years ago

Supported with 4f29014683f53d9d63c7eb717b7692444b78094b.