<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"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></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 <<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I have externally triangulated data in the following form:<br>
><br>> x, y, z<br>> ...<br>> ...<br>> ...<br>><br>> idx1, idx2, idx3<br>> ...<br>> ...<br>> ...<br>><br>> where (x,y,z) specify's points. and idx1, idx2, idx3 are indices of<br>> triangles. Using these data, how can I fill a vtkPolyData, so that contours<br>
> can be generated and displayed?<br>><br>> Thanks in advance<br>><br>> Ragards<br>> 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>