Skip to content
Branch: master
Find file Copy path
Find file Copy path
4.3 164008e Aug 19, 2019
2 contributors

Users who have contributed to this file

@marcomusy @Gjacquenot
16 lines (12 sloc) 442 Bytes
"""Embed a 3D scene
in a webpage with
x3dom and vtkplotter"""
from vtkplotter import *
e = load(datadir+'embryo.tif', threshold=True).decimate(0.5)
ec = e.getPoints()
e.pointColors(ec[:,1]) # add dummy colors along y
t = Text(__doc__, pos=[3000., 2000., 4723], s=150, c='w', depth=0.1)
show(t, e)
# This exports the scene and generates 2 files:
# embryo.x3d and an example embryo.html to inspect in the browser
You can’t perform that action at this time.