[vtkusers] question about vtkPolyDataConnectivityFilter
Anja Ende
anja.ende at googlemail.com
Sat Apr 5 07:27:15 EDT 2008
Hi everyone,
I am using vtkPolyDataConnectivityFilter as follows:
vtkContourFilter * contourFilter = vtkContourFilter::New();
contourFilter->SetInput(vtkDicomReader->GetOutput());
contourFilter->SetValue(0, 255);
vtkPolyDataConnectivityFilter * polyDataFilter =
vtkPolyDataConnectivityFilter::New();
polyDataFilter->SetInput(contourFilter->GetOutput());
polyDataFilter->SetScalarRange(255.0, 255.0);
polyDataFilter->Update();
int regions = polyDataFilter->GetNumberOfExtractedRegions();
Now what I want to do is iterate through all the regions and each of
the points in the region. However, I cannot figure out how to do this.
Anyone has any idea on how I can iterate through the regions and the
points?
Cheers,
Anja
More information about the vtkusers
mailing list