geost.base.Collection.to_pyvista_grid#
- Collection.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:
displayed_variables (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) – The ‘radius’ of the voxels. This will determine the horizontal size of the voxels in the resulting unstructured grid.
- 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