vtkRectilinearGridToTetrahedra segfaults when a single dimension is 1
Only occurs when SetTetraPerCell
is 12
>>> import numpy as np
>>> import pyvista as pv
>>> xrng = np.linspace(0, 1, 1) # single dimension
>>> yrng = np.linspace(0, 1, 2)
>>> zrng = np.linspace(0, 2, 2)
>>> grid = pv.RectilinearGrid(xrng, yrng, zrng)
>>> tet_grid = grid.to_tetrahedra(tetra_per_cell=12)
Process Python segmentation fault (core dumped)
Issue occurs with the PyPI package vtk==9.1.0
on vanilla Python 3.8 Ubuntu 22.04 with pyvista on main
at commit e3c74bdd355acbe2475692e06d3b3b7ff60894e2.