[vtkusers] RE: Why doesn't the Delaunay2D->Update() work?
Terence Lim
tlim at mda.ca
Thu Nov 8 13:49:07 EST 2001
Oops nevermind, I just stubbled upon ->Modified()
-----Original Message-----
From:
Sent: November 8, 2001 10:45 AM
To: 'vtkusers at public.kitware.com'
Subject: Why doesn't the Delaunay2D->Update() work?
Hi folks,
I am inserting new points into a vtkPoints object, I noticed that after I
insert the point, the corresponding vtkPolyData object is also updated. The
problem is the when I view the corresponding vtkDelaunay2D object, the
resulting TIN does not contain the points that I have inserted. I have
tried using Update() but this had no effect.
Any ideas? Here is my code:
points->GetNumberOfPoints(); //outputs 24
polydata->GetNumberOfPoints();//outputs 24
points->InsertNextPoint(coord[3]); //insert the point
points->GetNumberOfPoints(); //outputs 25
polydata->GetNumberOfPoints();//outputs 25
Delaunay->Update();
PolyDataMapper->SetInput(Delaunay-GetOutput());
etc...
Thanks,
Terence
More information about the vtkusers
mailing list