[vtk-developers] vtkDataSetAttributes::FieldList behavior

Andy Bauer andy.bauer at kitware.com
Tue Feb 19 18:46:59 EST 2013


Hi,

I'm trying to use vtkDataSetAttributes::FieldList to figure out the common
set of point data arrays among data sets in a multiblock data set. The
simple problem I have is 2 blocks with the following point arrays:

* first block has arrays RTData, Elevation and velocity with Elevation the
scalars array and velocity the vectors array
* second block has arrays RTData and velocity with RTData being the scalars
array and velocity being the vector array

As I go through and intersect the arrays starting with the first block I
get the result of 3 arrays but if I switch the order of the blocks then I
get 2 arrays (it doesn't keep Elevation). It looks as if the
vtkDataSetAttributes::FieldList::IntersectFieldList() should be checking
array names as well for intersection but isn't.

So I guess my question is, should we be checking names there or is there
some other desired behavior that we should have to check if the arrays are
the "same"?

Thanks,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130219/5415ca9c/attachment.html>


More information about the vtk-developers mailing list