Function t8_vtk_reader

Function Documentation

vtkSmartPointer<vtkDataSet> t8_vtk_reader(const char *filename, const int partition, const int main_proc, sc_MPI_Comm comm, const vtk_file_type_t vtk_file_type)

Given a filename to a vtkUnstructuredGrid or vtkPolyData read the file and construct a abstract class to specify dataset behavior.

The file is read and stored in a vtkDataSet.

Note

This function is only available if t8code is linked against VTK.

Parameters:
  • filename[in] The name of the file

  • partition[in] Flag if the constructed mesh should be partitioned

  • main_proc[in] The main reading processor

  • comm[in] An mpi-communicator

  • vtk_file_type[in] A vtk-filetype that is readable by t8code.

Returns:

Pointer to vtkDataSet