[vtkusers] Bug in vtkPolyDataConnectivityFilter

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Fri Apr 7 14:37:20 EDT 2006


On Fri, 2006-04-07 at 13:49 -0400, Kevin H. Hobbs wrote:
> I think I found a bug in vtkPolyDataConnectivityFilter, or at least
> misleading documentation.
> 
> The Documentation for mode 4 says "4) extract all regions sharing
> specified cell ids;" To me this means that the list of seed IDs will be
> used to seed different regions. GetNumberOfExtractedRegions should give
> me the number of seeds, and the regions should be colored differently if
> SetColorRegions is on. This is not what happens. Instead
> GetNumberOfExtractedRegions returns 1, and all the regions are given the
> same region number.

After looking at Graphics/vtkPolyDataConnectivityFilter.cxx I see the
comment on line 202, "regions have been seeded, everything considered in
same region" So I think it's the documentation that is wrong, for the
simple reason that it's easier to fix. A second connectivity filter with
SetExtractionModeToAllRegions will get what I want.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060407/cdc1080d/attachment.pgp>


More information about the vtkusers mailing list