<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">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</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 &lt;<a href="mailto:soumya.nsec@gmail.com">soumya.nsec@gmail.com</a>&gt; wrote:<br>
&gt; Hi David,<br>
&gt;<br>
&gt; thanks for the suggestion.. I am now able to get the data<br>
&gt;<br>
&gt; vtkPointData* vals;<br>
&gt;   vals = data-&gt;GetPointData();<br>
&gt;<br>
&gt; vtkDataArray* arr;<br>
&gt;   arr = vals-&gt;GetArray(0);<br>
&gt;<br>
&gt; arr-&gt;GetTuple(i,value);<br>
&gt;<br>
&gt; this gives the values..<br>
&gt;<br>
&gt;<br>
&gt; do you know how I can draw isosurface in this structured grid data? I know I<br>
&gt; can not do volume rendering.. but does vtk allow drawing isosurafce in a<br>
&gt; structured grid ?<br>
&gt; 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&#39;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&#39; 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>