Skip to content

vtki Support

Compare
Choose a tag to compare
@banesullivan banesullivan released this 16 Jan 08:25

The v1.2.0 release comes with a significant new dependancy: vtki. The vtkInterface Python package (vtki) is a helper module that takes a different approach to interfacing with VTK through NumPy and direct array access. The package brings a much more Pythonic interface to using the VTK data objects that go in and out of PVGeo algorithms. From this point forward, we will provide full support for pairing PVGeo with vtki as a visualization library so that users can leverage powerful visualization routines and tools built for pure Python envrionments such as vtki's:

  • Direct filtering on data objects: dataset.threshold()
import PVGeo
dataset = PVGeo.model_build.CreateUniformGrid().Apply()

# Apply a threshold over a data range
dataset.threshold([100, 500])
  • IPython interactive plotting tools

interactive-viz

slicer-tool

New Features

  • Support for Open Mining Format project files through the omfvtk optional dependency
  • External library interfacing with a new base class: PVGeo.InterfacedBaseReader
  • Support for discretize meshes and other UBC data formats

Resources

Be sure to check out all the Jupyter notebooks in the examples repository to learn more about using PVGeo and vtki!

Deprecations

  • The Table to Grid filter has officially been removed and replaced by the optimized Table to Time Grid filter: PVGeo.grids.TableToTimeGrid