<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Dear vtk users;<br>I have <font face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">unstructured points</font> cloud xyz describing a face of building <font face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">no
topology for the cloud points available. My question is How to get the
topological information? for example the the neighbors</font> of any point. <br><br>I searched in the mail user and used vtkDelaunay3D without succee, my code is below, pleas help<br>Thank you<br>Amr<br><br>vtkPoints* cloud1 = vtkPoints::New();<br> vtkCellArray *Vertices1 = vtkCellArray::New(); <br> <br> std::ifstream in;<br>
in.open("data\\scan3.nor");<br> if ( !in ) {<br> puts("Cannot open file");<br> exit(0);<br> }<br> in >> mypoint_1[0] >> mypoint_1[1] >> mypoint_1[2];<br> while( in ) {<br> cloud1->InsertNextPoint(mypoint_1);<br> in >> mypoint_1[0] >> mypoint_1[1] >> mypoint_1[2];<br> }<br> in.close();<br> <br> <br> vtkPolyData* polyData1 = vtkPolyData::New();<br> polyData1->SetPoints(cloud1);<br> polyData1->Update();<br> <br> //Delaunay3D<br>
<br> vtkDelaunay3D *del=vtkDelaunay3D::New();<br> del->SetInput(polyData1);<br> del->SetAlpha(0.02);<br> </div></div><br>
                <hr size=1>Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!<br>Jetzt <a href=http://de.messenger.yahoo.com>Yahoo! Messenger</a> installieren!</body></html>