[vtkusers] problems with points id -- unstructuredGrid to polydata

pam papereyra at gmail.com
Wed Oct 1 16:18:40 EDT 2008


Hi, I'm working with an vtkUnstructuredGrid, when I insert points I
give an orden but when I copy this to a polydata the orden is change.

this is my orden  :

pts=vtkPoints::New();
pts->InsertPoint(0,1,1,1);
pts->InsertPoint(1,16,10,1);
pts->InsertPoint(2,17,11,1);
pts->InsertPoint(3,20,12,10);
pts->InsertPoint(4,15,12,1);

profile=vtkPolyData::New();
profile->SetPoints(pts);

delny=vtkDelaunay3D::New();
 delny->SetInput(profile);
 delny->Update();
 delny->SetTolerance(0.00000001);
delny->BoundingTriangulationOff();

 ----- Here I assign the unstructuredgrid to a polydata
extract=vtkExtractEdges::New();
extract->SetInput(delny->GetOutput());

So My order is change to

1,1,1  ---> before  0
20,12,10 --> before 3
16,10,1 --> before 1
15,12,1 -->before 4
17,11,1 -->before 2

I would like to know if something to set to keep the initial order of
the points.

Thanks

Pamela



More information about the vtkusers mailing list