[Paraview] setting a point data array
Moreland, Kenneth
kmorel at sandia.gov
Mon Oct 6 10:09:49 EDT 2008
Did you set the name for new_scalars? If the array has no name, it probably
won't show up in ParaView. Use the SetName method in vtkDoubleArray.
-Ken
On 10/3/08 5:06 AM, "Natalie Happenhofer" <nataliehapp at hotmail.com> wrote:
> Hi!
> I´m having trouble setting a point data array in my filter:
>
> As I have to retrieve the point data with
> input -> GetPointData() -> GetArray(0) -> GetData(0,numOfTuples,1,1,scalars);
>
> I need something similiar to set the output data of my filter. I tried
> output -> GetPointData() -> AddArray(new_scalars);
> where new_scalars is a vtkDoubleArray, but this does not work, i.e the
> assignment fails and I get an error because there is no point Data for the
> output - how do I set the output correctly?
>
> thx,
> NH
>
>
> Express yourself instantly with MSN Messenger! MSN Messenger
> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** fax: (505) 845-0833
More information about the ParaView
mailing list