[Paraview] Block names for multi-block data set
Jean M. Favre
jfavre at cscs.ch
Mon Jul 6 07:27:03 EDT 2009
Adriano Gagliardi wrote:
> I've written a reader that takes a mesh file, stores zones within it as a
> vtkUnstructuredGrid and then stores them all in a vtkMultiBlockDataSet. When
> I go to extract blocks after reading the mesh in, I am faced with a list of
> each block number all called vtkUnstructuredGrid. Is it possible to assign
> names to each of the blocks within the reader? I can't seem to find any
> function to do so in the respective vtk class lists.
I believe you need this line:
volumes->GetMetaData(grid_number)->Set(vtkCompositeDataSet::NAME(),
"grid-name");
More information about the ParaView
mailing list