indentation adjustment
This commit is contained in:
parent
903af10aa7
commit
946231cda5
|
@ -1004,7 +1004,6 @@ class Result():
|
||||||
if mode.lower()=='cell':
|
if mode.lower()=='cell':
|
||||||
|
|
||||||
if self.structured:
|
if self.structured:
|
||||||
|
|
||||||
coordArray = [vtk.vtkDoubleArray(),vtk.vtkDoubleArray(),vtk.vtkDoubleArray()]
|
coordArray = [vtk.vtkDoubleArray(),vtk.vtkDoubleArray(),vtk.vtkDoubleArray()]
|
||||||
for dim in [0,1,2]:
|
for dim in [0,1,2]:
|
||||||
for c in np.linspace(0,self.size[dim],1+self.grid[dim]):
|
for c in np.linspace(0,self.size[dim],1+self.grid[dim]):
|
||||||
|
@ -1015,9 +1014,7 @@ class Result():
|
||||||
vtk_geom.SetXCoordinates(coordArray[0])
|
vtk_geom.SetXCoordinates(coordArray[0])
|
||||||
vtk_geom.SetYCoordinates(coordArray[1])
|
vtk_geom.SetYCoordinates(coordArray[1])
|
||||||
vtk_geom.SetZCoordinates(coordArray[2])
|
vtk_geom.SetZCoordinates(coordArray[2])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
nodes = vtk.vtkPoints()
|
nodes = vtk.vtkPoints()
|
||||||
with h5py.File(self.fname,'r') as f:
|
with h5py.File(self.fname,'r') as f:
|
||||||
nodes.SetData(numpy_support.numpy_to_vtk(f['/geometry/x_n'][()],deep=True))
|
nodes.SetData(numpy_support.numpy_to_vtk(f['/geometry/x_n'][()],deep=True))
|
||||||
|
|
Loading…
Reference in New Issue