[yt-dev] Issue #633: Vertices not correctly created in surface export (yt_analysis/yt)
Matthew Turk
issues-reply at bitbucket.org
Tue Aug 20 12:37:58 PDT 2013
New issue 633: Vertices not correctly created in surface export
https://bitbucket.org/yt_analysis/yt/issue/633/vertices-not-correctly-created-in-surface
Matthew Turk:
This script fails except when the commented line is uncommented:
```
#!python
from yt.mods import *
from numpy import *
myfile=loadtxt("3ddata_300_lowerres.txt")
dens=myfile[:,3]
densitycube=dens.reshape(61,61,61)
mydata=dict(Density=densitycube)
bbox=np.array([[-300,300],[-300,300],[-300,300]])
pf=load_uniform_grid(mydata,densitycube.shape,3.08e18,bbox=bbox)
sp = pf.h.sphere("center", (250, "pc"))
trans = 1.0
distf = 3.08e18
surf = pf.h.surface(sp, "Density", 0.0006)
#print surf["Density"]
bounds = [(sp.center[i] - 125.0/pf['pc'],sp.center[i] + 125.0/pf['pc'])
for i in range(3)]
surf.export_ply("myism.ply",bounds=bounds)
```
Responsible: MatthewTurk
More information about the yt-dev
mailing list