YTSurfaceBase.
export_ply
(filename, bounds=None, color_field=None, color_map='algae', color_log=True, sample_type='face', no_ghost=False)[source]¶This exports the surface to the PLY format, suitable for visualization in many different programs (e.g., MeshLab).
Parameters: | filename : string
bounds : list of tuples
color_field : string
color_map : string
color_log : bool
|
---|
Examples
>>> from yt.units import kpc
>>> sp = ds.sphere("max", (10, "kpc")
>>> surf = ds.surface(sp, "density", 5e-27)
>>> print surf["temperature"]
>>> print surf.vertices
>>> bounds = [(sp.center[i] - 5.0*kpc,
... sp.center[i] + 5.0*kpc) for i in range(3)]
>>> surf.export_ply("my_galaxy.ply", bounds = bounds)