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"); _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
