Thanks, Jean. That has done the trick!
=================================== Adriano Gagliardi MEng PhD Project Scientist Computational Aerodynamics Aircraft Research Association Ltd. Manton Lane Bedford Tel: 01234 32 4644 E-mail: [email protected] Url: www.ara.co.uk -----Original Message----- From: Jean M. Favre [mailto:[email protected]] Sent: 06 July 2009 12:27 To: [email protected] Cc: [email protected] Subject: Re: [Paraview] Block names for multi-block data set 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"); --------------------------- This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender. Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons. Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 _______________________________________________ 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
