<div dir="ltr">Hi David, <br><br>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.. <br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Nov 5, 2013 at 11:48 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Nov 5, 2013 at 10:28 AM, Soumya Dutta <<a href="mailto:soumya.nsec@gmail.com">soumya.nsec@gmail.com</a>> wrote:<br>
> Hi David,<br>
><br>
> thanks for the suggestion.. I am now able to get the data<br>
><br>
> vtkPointData* vals;<br>
> vals = data->GetPointData();<br>
><br>
> vtkDataArray* arr;<br>
> arr = vals->GetArray(0);<br>
><br>
> arr->GetTuple(i,value);<br>
><br>
> this gives the values..<br>
><br>
><br>
> do you know how I can draw isosurface in this structured grid data? I know I<br>
> can not do volume rendering.. but does vtk allow drawing isosurafce in a<br>
> structured grid ?<br>
> I can draw isosurface using paraview. SO I am assuming that it is possible.<br>
<br>
</div>I encourage you to look through the examples wiki:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx</a><br>
<br>
There is a section on implicit functions:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx#Implicit_Functions_and_Iso-surfaces" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx#Implicit_Functions_and_Iso-surfaces</a><br>
<br>
It contains a few examples that demonstrate vtkContourFilter, which<br>
should do what you're looking for:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImplicitFunctions/IsoContours" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImplicitFunctions/IsoContours</a><br>
<br>
Good luck,<br>
<br>
David<br>
</blockquote></div><br><br clear="all"><br>-- <br><i>Yours' Sincerely</i>,<br><span style="font-weight:bold;font-style:italic">Soumya Dutta</span><br>
<span style="font-style:italic">Graduate Student</span><br style="font-style:italic">
<span style="font-style:italic">Department of Computer Science and Engineering</span><br>
<span style="font-style:italic">The Ohio State University</span><br><i></i><br><br><br>
</div>