Hi,<br><br> vtkDelaunay3D is an algorithm, whereas your question deals with data structures. You should investigate the GetCellNeighbors( ) member function from vtkUnstructuredGrid.<br>If you are allowed to use vtkPolyData, you can take a look at the sources of vtkSmoothPolyDataFilter, that I expect to compute a weighted sum over vertex neighbors.<br>
<br>Let us know if you solve or not your problem: I will have to implement this iterator soon.<br><br>'Hope that helps<br>Jerome<br><br><div class="gmail_quote">2009/7/8 Lloyd Fenelon <span dir="ltr"><<a href="mailto:lfenelon@bccrc.ca">lfenelon@bccrc.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p>Hi,</p>
<p> </p>
<p>I am using vtkCellLinks after computing a <span style="color: black;">unstructured grid dataset</span></p>
<p><span style="color: black;">with vtkDelaunay3D. I would like
to get the neighbors of each points.</span></p>
<p><span style="color: black;">Nothing comes out of the
BuildLinks method the way I use it:</span></p>
<p><span style="color: black;"> </span></p>
<p><span style="font-family: "Courier New"; color: black;">...</span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";">vtkSmartPointer<vtkDelaunay3D>
delaunay<br>
= vtkSmartPointer< vtkDelaunay3D>::New();</span></p>
<p><span style="font-family: "Courier New"; color: black;">computeDelaunay();</span></p>
<p><span style="font-family: "Courier New"; color: black;">...</span></p>
<p><span style="color: black;"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";">vtkSmartPointer<vtkCellLinks>
cellLinks <br>
= vtkSmartPointer<vtkCellLinks>::New();</span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";">cellLinks->BuildLinks(delaunay->GetOutput());</span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p>Actually I don't know how to get back the points Ids</p>
<p>from delaunay so I give the unstuctured grid dataset.</p>
<p>Does someome can explain me what is going wrong here please ?</p>
<p>thank you</p>
<p> </p>
<p>Lloyd</p>
<p> </p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p><span style="color: black;"> </span></p>
</div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>