[vtkusers] Q: vtkPolyDataConnectivityFilter

Will Schroeder will.schroeder at kitware.com
Fri Apr 20 13:36:44 EDT 2001


Hi Audrius -

At 01:00 PM 4/20/2001 -0400, you wrote:

>aContourTestPolyData = aConnectivityFilter->GetOutput( iContourRegion);

The filter produces a single output. Normally you set the mode of the 
filter to extract a specified region (or regions) and then grab the output 
similar to:

aConnectivityFilter = vtkPolyDataConnectivityFilter::New();
aConnectivityFilter->SetInput( aContourMarchingSquares->GetOutput() );
aConnectivityFilter->ScalarConnectivityOff();
aConnectivityFilter->SetExtractionModeToSpecifiedRegions();
aConnectivityFilter->InitializeSpecifiedRegionList();
aConnectivityFilter->AddSpecifiedRegion(iContourRegion);
aConnectivityFilter->Update();

vtkPolyData *aContourTestPolyData = aConnectivityFilter->GetOutput();

Will





More information about the vtkusers mailing list