[vtkusers] vtkPolyDataConnectivityFilter

prabhat246 prabhat246 at yahoo.com
Thu Oct 9 02:12:13 EDT 2008


I am able to find a connected component by providing specified region id(s),
in the following manner....

				vtkPolyDataConnectivityFilter *connect =
vtkPolyDataConnectivityFilter::New();
				connect->SetExtractionModeToSpecifiedRegions();
				connect->AddSpecifiedRegion(0);
				connect->AddSpecifiedRegion(1);
				connect->AddSpecifiedRegion(2);
				connect->AddSpecifiedRegion(3);
				connect->AddSpecifiedRegion(4);
				connect->ColorRegionsOn();	
				connect->SetInput(mc->GetOutput());
				std::cout<<"GetNumberOfExtractedRegions :
"<<connect->GetNumberOfExtractedRegions();
				polyMapper->SetInput( connect->GetOutput() );



But How can I get how many regions it has formed ???
GetNumerOfExtractedRegions retuns 0;

How can I see every component in a different color???

Thanks a lot.
Regards,
Prabhat Kumar Gupta

-- 
View this message in context: http://www.nabble.com/vtkPolyDataConnectivityFilter-tp19892989p19892989.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list