geost.base.LayeredData.to_pyvista_grid#
- LayeredData.to_pyvista_grid(displayed_variables: str | list[str], radius: float = 1)[source]#
Create a PyVista UnstructuredGrid object of the data in this instance. This method is more efficient than
to_pyvista_cylinders()
for large datasets, as it uses a grid representation instead of cylinders.- Parameters:
data_columns (str | list[str]) – Name or names of data columns to include for visualisation. Can be columns that contain an array of floats, ints and strings.
radius (float, optional) – Radius cells in m, by default 1.
- Returns:
A PyVista UnstructuredGrid object containing the data that can be used for 3D visualisation in PyVista or other VTK viewers.
- Return type:
pyvista.UnstructuredGrid