Fixed number of dimensions in vtk file

This commit is contained in:
RemDelaporteMathurin 2022-07-11 12:29:10 +00:00
parent 6549067c43
commit 0fe895e195

View file

@ -240,7 +240,7 @@ class StructuredMesh(MeshBase):
vtk_grid = vtk.vtkStructuredGrid()
vtk_grid.SetDimensions(*self.dimension)
vtk_grid.SetDimensions(*[dim + 1 for dim in self.dimension])
vtkPts = vtk.vtkPoints()
vtkPts.SetData(nps.numpy_to_vtk(points, deep=True))