[vtkusers] how to get the scalar or vector data from vtkstructuredgrid

Soumya Dutta soumya.nsec at gmail.com
Tue Nov 5 15:19:53 EST 2013


Hi David,

Thanks for the links.. I figured out and now I can draw isosurfaces.. only
thing is left is to do volume rendering now.. thanks for all the help..


On Tue, Nov 5, 2013 at 11:48 AM, David Doria <daviddoria at gmail.com> wrote:

> On Tue, Nov 5, 2013 at 10:28 AM, Soumya Dutta <soumya.nsec at gmail.com>
> wrote:
> > Hi David,
> >
> > thanks for the suggestion.. I am now able to get the data
> >
> > vtkPointData* vals;
> >   vals = data->GetPointData();
> >
> > vtkDataArray* arr;
> >   arr = vals->GetArray(0);
> >
> > arr->GetTuple(i,value);
> >
> > this gives the values..
> >
> >
> > do you know how I can draw isosurface in this structured grid data? I
> know I
> > can not do volume rendering.. but does vtk allow drawing isosurafce in a
> > structured grid ?
> > I can draw isosurface using paraview. SO I am assuming that it is
> possible.
>
> I encourage you to look through the examples wiki:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx
>
> There is a section on implicit functions:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx#Implicit_Functions_and_Iso-surfaces
>
> It contains a few examples that demonstrate vtkContourFilter, which
> should do what you're looking for:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImplicitFunctions/IsoContours
>
> Good luck,
>
> David
>



-- 
*Yours' Sincerely*,
Soumya Dutta
Graduate Student
Department of Computer Science and Engineering
The Ohio State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131105/6106ca1c/attachment.htm>


More information about the vtkusers mailing list