<div>Thanks David,</div>
<div> </div>
<div>That worked for me to produce contours. Later I tried to interpolate a mesh, with the help of this triangulated data which is filled in polydata. I used this example </div>
<div> </div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Broken/GridPointCloud">http://www.vtk.org/Wiki/VTK/Examples/Broken/GridPointCloud</a></div>
<div> </div>
<div>Where, pointSource in the example is replaced by mesh points in my problem, and grid is replaced by triangulated data in form of vtkPolydata.</div>
<div> </div>
<div>Although, I am able to get the interpolated data, it takes lots of time. Previously same code used to work fast when the triangulated data used to come directly from vtkDelaunay2D object.<br></div>
<div>Can you/anyone tell why is this happening?<br></div>
<div class="gmail_quote">On Fri, Jan 6, 2012 at 6:54 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="HOEnZb">
<div class="h5">On Fri, Jan 6, 2012 at 12:27 AM, rakesh patil &lt;<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I have externally triangulated data in the following form:<br>
&gt;<br>&gt; x, y, z<br>&gt; ...<br>&gt; ...<br>&gt; ...<br>&gt;<br>&gt; idx1, idx2, idx3<br>&gt; ...<br>&gt; ...<br>&gt; ...<br>&gt;<br>&gt; where (x,y,z) specify&#39;s points. and idx1, idx2, idx3 are indices of<br>&gt; triangles. Using these data, how can I fill a vtkPolyData, so that contours<br>
&gt; can be generated and displayed?<br>&gt;<br>&gt; Thanks in advance<br>&gt;<br>&gt; Ragards<br>&gt; Rakesh Patil<br><br></div></div>This should get you started:<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Triangle" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Triangle</a><br>
<span class="HOEnZb"><font color="#888888"><br>David<br></font></span></blockquote></div><br>