[vtkusers] vtkUnstructuredGrid with several scalar fields

Burlen burlen at apollo.sr.unh.edu
Fri Apr 13 09:03:15 EDT 2007


try 
mesh->GetPointData()->AddArray(scalars);


On Friday 13 April 2007 07:22 am, Christophe Peyret wrote:
> Hello,
>
> I am building a vtkUnstructuredGrid and I would like to set several
> scalar Fields
>
> Iif I use
>
>          mesh->GetPointData()->SetScalars(scalars);
>
> when I enter a second scalar field, it seems to replace the first one.
>
> Anyone has an idea ?
>
> Christophe Peyret
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 

Burlen Loring
Space Science Center
Institute for the Study of Earth, Oceans, and Space
University of New Hampshire
39 College Road, Durham, NH 03824
Phone: 603-862-1140



More information about the vtkusers mailing list