Skip to content
Snippets Groups Projects
Commit 1966af67 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

Grid: fix 1D/2D structured vtk export for rectilinear

parent b8b12795
No related branches found
No related tags found
1 merge request!258Grid mask support
......@@ -457,8 +457,8 @@ class StructuredGrid(Grid):
)
path = str(Path(path).with_suffix(""))
x = np.ascontiguousarray(self.axes[0])
y = np.ascontiguousarray(self.axes[1] if self.dim > 1 else np.array([1.0]))
z = np.ascontiguousarray(self.axes[2] if self.dim > 2 else np.array([1.0]))
y = np.ascontiguousarray(self.axes[1] if self.dim > 1 else np.array([0.0]))
z = np.ascontiguousarray(self.axes[2] if self.dim > 2 else np.array([0.0]))
gridToVTK(path, x, y, z, **kw)
def to_canonical(self, data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment