[Paraview] Fwd: Cell v. point data

Berk Geveci berk.geveci at gmail.com
Tue Sep 13 14:08:56 EDT 2005


vtkPVSource->GetDataInformation() 
will return a data structure that has information about the output of
the reader. Then you need to get PointDataInformation and/or
CellDataInformation and check if they have arrays. Check
Servers/Common/vtkPVDataInformation.h for more info.

On 9/13/05, Randy Hudson <hudson at mcs.anl.gov> wrote:
> 
> 
> My AMR reader is part of the server.  My custom GUI is part of the client.  My GUI needs to determine whether the AMR data just read is cell-centered or point-centered, so it will know whether it must further convert cell-centered to point-centered before an isosurface is possible.
> 
> Is there a method I can call from the client -- maybe vtkPVSource -> Get<Something>() -> Get<Something>() -> Get<Something>() -- that will tell me whether the data is cell-centered or point-centered?
> 
> (I see there are vtkBridgeAttribute::GetCentering() and vtkGenericAttribute::GetCentering(), but haven't determined how to get to them, yet.)
> 
> Thanks.
> 
> 
> >Date: Sat, 10 Sep 2005 12:13:51 -0500
> >To: paraview at paraview.org
> >From: Randy Hudson <hudson at mcs.anl.gov>
> >
> >
> >There must be a method I can call to determine whether the data I've just read is cell- or point-centered.  (I need this for my custom GUI for AMR data.)
> >
> >I've spent much time digging for this, but, so far, have come up empty-handed.
> >
> >Can someone tell me what it is?
> >
> >Thanks.
> >
> >
> >
> >Randy.
> >630 252 8690.
> 
> 
> Randy.
> 630 252 8690.
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list