Function t8_vtk_reader_pointSet
Defined in File t8_vtk_reader.hxx
Function Documentation
-
vtkSmartPointer<vtkPointSet> t8_vtk_reader_pointSet(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 a set of points is constructed.
This is a two stage process. First the file is read and stored in a vtkDataSet using t8_vtk_reader and t8_file_to_vtkGrid. In the second stage a vtkPointSet is constructed from the vtkDataSet using t8_vtkGrid_to_vtkPointSet.
Both stages use the vtk-library, therefore the 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