[vtkusers] How to get the topological information?
amr Ismail abdel
amr_191098 at yahoo.de
Mon Jan 15 13:44:30 EST 2007
Dear vtk users;
I have unstructured points cloud xyz describing a face of building no
topology for the cloud points available. My question is How to get the
topological information? for example the the neighbors of any point.
I searched in the mail user and used vtkDelaunay3D without succee, my code is below, pleas help
Thank you
Amr
vtkPoints* cloud1 = vtkPoints::New();
vtkCellArray *Vertices1 = vtkCellArray::New();
std::ifstream in;
in.open("data\\scan3.nor");
if ( !in ) {
puts("Cannot open file");
exit(0);
}
in >> mypoint_1[0] >> mypoint_1[1] >> mypoint_1[2];
while( in ) {
cloud1->InsertNextPoint(mypoint_1);
in >> mypoint_1[0] >> mypoint_1[1] >> mypoint_1[2];
}
in.close();
vtkPolyData* polyData1 = vtkPolyData::New();
polyData1->SetPoints(cloud1);
polyData1->Update();
//Delaunay3D
vtkDelaunay3D *del=vtkDelaunay3D::New();
del->SetInput(polyData1);
del->SetAlpha(0.02);
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070115/b8e87ea2/attachment.htm>
More information about the vtkusers
mailing list