[Paraview] Block names for multi-block data set

Adriano Gagliardi agagliardi at ara.co.uk
Mon Jul 6 07:35:13 EDT 2009


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: agagliardi at ara.co.uk
Url: www.ara.co.uk 
-----Original Message-----
From: Jean M. Favre [mailto:jfavre at cscs.ch] 
Sent: 06 July 2009 12:27
To: agagliardi at ara.co.uk
Cc: paraview at paraview.org
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




More information about the ParaView mailing list