[vtkusers] vtkPolyDataConnectivityFilter question about extracted region id's
Berk Geveci
berklist at nycap.rr.com
Tue Dec 30 14:26:20 EST 2003
>From vtkPolyDataConnectivityFilter.cxx:
// Traverse all cells marking those visited. Each new search
// starts a new connected region. Connected region grows
// using a connected wave propagation.
Since each cell is visited in order, the id of a region depends on it's
cell with the smallest id. For example, the region which contains cell 0
will be region 0.
-Berk
On Tue, 2003-12-30 at 14:00, Aysegul Gunduz wrote:
> Hi all,
>
> I was wondering how the extracted regions are given their region ids. Is
> there some kind of convention?
> Or in other words how do I know the id of the region I want to add?
> Thanks,
>
> A Gunduz
>
> 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
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Berk Geveci <berklist at nycap.rr.com>
More information about the vtkusers
mailing list