Hello, <br><br>I am facing problem with vtkDelaunay2D object. Here is the code what I have used to display unconnected points as a scattered points.<br><br>vtkPoints *pnts = vtkPoints::New();<br>pnts-&gt;SetNumberOfPoints(num);<br>
<br>vtkDoubleArray *scalar = vtkDoubleArray::New();<br>scalar-&gt;SetNumberOfTuples(num);<br><br>vtkCellArray *pVertex = vtkCellArray::New();<br><br><br>for (vtkIdType i = 0; i &lt; num; i++)<br>{<br>   readFile &gt;&gt; xval &gt;&gt; yval &gt;&gt; zval;<br>
   pnts-&gt;InsertPoint(i, xval, yval, 0);<br>   scalar-&gt;InsertTuple1(i, zval);<br>   pVertex-&gt;InsertNextCell(1, &amp;i);<br>}<br><br>vtkPolyData *pd = vtkPolyData::New();<br>pd-&gt;SetPoints(pnts);<br>pd-&gt;SetVerts(pVertex);<br>
pd-&gt;GetPointData()-&gt;SetScalars(scalar);<br><br>vtkDelaunay2D *del = vtkDelaunay2D::New();<br>del-&gt;SetInput(pd);<br>del-&gt;SetTolerance(0.00001);<br>del-&gt;Update();<br><br>vtkPolyDataMapper *mapp = vtkPolyDataMapper::New();<br>
mapp-&gt;SetInputConnection( del-&gt;GetOutputPort() );<br>mapp-&gt;ScalarVisibilityOn();<br><br>vtkActor *actor = vtkActor::New();<br>actor-&gt;SetMapper(mapp);<br>actor-&gt;GetProperty()-&gt;SetColor(1, 0, 0);<br>actor-&gt;GetProperty()-&gt;SetPointSize(3);<br>
<br>renderer-&gt;AddActor(actor);<br><br>For one particular data, my application closes automatically without producing any message. To check what exactly happens, I designed a very small application which only reads the data file and displays the points. I used same code mentioned above in both application. But in the new application, even though it takes time, it works without any problem. But the same code, doesn&#39;t work in my main application. Since the data size is 120MB (~37lakhs points), I cannot attach it here. <br>
<br>I did google search to find out to get any clue for such behavior. I got this link which is not exactly a solution for my problem<br><br><a href="http://vtk.1045678.n5.nabble.com/Delaunay2D-infinite-recursion-td1255389.html">http://vtk.1045678.n5.nabble.com/Delaunay2D-infinite-recursion-td1255389.html</a><br>
<br>Therefore, I just made a copy of vtkDelaunay2D and started debugging it in my main application. While debugging, I found that after certain number of iterations, it enters in FindTriangle function from RequestData function. And somewhere in FindTriangle it crashes of closes. I saw in the stack, all FindTriangle function calls. So I felt it&#39;s the same case as it is mentioned in the link above. <br>
<br>Is there any solution for this problem? The strangest and wierdest thing is the same dataset gets loaded in one application and doesnt gets loaded in another with same code and on the same machine. <br><br>Any clue or idea or solutions are welcome.<br>
<br>Thanks in advance<br><br>Warm Regards<br>Rakesh Patil<br>