geost.models.VoxelModel.to_pyvista_grid#
- VoxelModel.to_pyvista_grid(data_vars: str | list[str] = None, structured: bool = True)[source]#
Convert the VoxelModel to a PyVista grid.
- Parameters:
data_vars (str | list[str], optional) – String representing one data variable or list of data variables to include in the PyVista grid. If None, all data variables are included. The default is None.
structured (bool, optional) – If True, convert to a structured grid. If False, convert to an unstructured grid. The default is True.
- Returns:
PyVista grid representation of the VoxelModel.
- Return type:
pyvista.UnstructuredGrid or pyvista.StructuredGrid