python vtk example files for vtk data manipulation
The repository contains examples files in the 'ex' and the 'insitu' directory, and a bunch of simple python files to expose some usage of vtk function, 'open', 'manipulate', 'visualize' and 'save' vtk files.
- vtkUnstructuredGridReader => read VTK data
- vtkUnstructuredGridWriter => write VTK data
- vtkArrayCalculator
- vtkAppendFilter
- vtkThreshold
Read data and look at the different array cell information
- vtkUnstructuredGridReader
Read and visualize data
Read VTK data
- vtkUnstructuredGridReader
Visualization
- vtkDataSetMapper
- vtkActor
- vtkRenderer
- vtkRenderWindow
- vtkRenderWindowInteractor
Read a list of files, and merge then in a single one
- vtkUnstructuredGridReader
- vtkAppendFilter
- vtkUnstructuredGridWriter
Read a simple file, copy and translate the cells while adding a new array (with 2 different values for color visualization). The calcultator is used twice: i) to add an array, ii) to translate the cell (change the coordinates)
- vtkUnstructuredGridReader
- vtkArrayCalculator
- vtkAppendFilter
- vtkUnstructuredGridWriter
- => visualization
The example file contains 2 cells with a 'label' array containing a single value per array. The Threshold is used to extract and save each cell.
- vtkUnstructuredGridReader
- vtkThreshold
- vtkUnstructuredGridWriter
The example file contains 2 cells with a 'label' array containing a single value per array. The Threshold is used to extract visualize a one of them.
- vtkUnstructuredGridReader
- vtkThreshold
- => visualization
Extract cells from an example file and add data as a new array before saving it.
- vtkUnstructuredGridReader
- vtkArrayCalculator
- vtkThreshold
- vtkUnstructuredGridWriter