changed "texture" to more correct "structure"

This commit is contained in:
Philip Eisenlohr 2011-11-03 12:07:41 +00:00
parent 4e8f36a133
commit b847db969a
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ mappings = {
}
parser = OptionParser(option_class=extendedOption, usage='%prog [geomfile[s]]', description = """
Produce VTK rectilinear mesh of texture data from geom description
Produce VTK rectilinear mesh of structure data from geom description
""" + string.replace('$Id$','\n','\\n')
)
@ -158,11 +158,11 @@ for file in files:
print 'resolution: %s'%(' x '.join(map(str,resolution)))
print 'dimension: %s'%(' x '.join(map(str,dimension)))
data = {'scalar':{'texture':numpy.zeros(resolution,'i')}}
data = {'scalar':{'structure':numpy.zeros(resolution,'i')}}
i = 0
for line in content:
for item in map(int,line.split()):
data['scalar']['texture'][i%resolution[0],(i/resolution[0])%resolution[1],i/resolution[0]/resolution[1]] = item
data['scalar']['structure'][i%resolution[0],(i/resolution[0])%resolution[1],i/resolution[0]/resolution[1]] = item
i += 1