[Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++
Andy Bauer
andy.bauer at kitware.com
Tue Apr 2 15:37:44 EDT 2013
You're missing the vtkPointData header file so you just need to add:
#include "vtkPointData.h"
Andy
On Tue, Apr 2, 2013 at 3:33 PM, Paw Møller <pawsen at gmail.com> wrote:
> Thanks for the answer Joe,
>
> but I still get a compilation error for
>
> rgrid->GetPointData()->AddArray(temperature);
>
> The error:
> invalid use of incomplete type ‘class vtkPointData’
> In file included from /usr/include/vtk-5.8/vtkPointSet.h:29:0,
> from /usr/include/vtk-5.8/vtkStructuredGrid.h:42,
> from vtk.cpp:13:
>
> Any ideas?
>
> Paw
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130402/a32bbaf0/attachment.htm>
More information about the ParaView
mailing list