How to get each region as a polydata using vtkConnectedPointsFilter
mallikarjun49 <[email protected]> Fri, 8 Feb 2019 04:51:10 -0700 (MST)
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
Hello All,
I want to extract all the points which are connected by a certain radius as
a polydata. I am trying to use vtkConnectedPointsFilter like this below:
*auto region_groups = vtkSmartPointer<vtkConnectedPointsFilter>::New();
region_groups->SetInputData(Input_polyData);
region_groups->SetRadius(0.1);
region_groups->SetExtractionModeToAllRegions();
region_groups->Update();
*
int *no_of_regions* = region_groups->GetNumberOfExtractedRegions();
Now I want to extract each region out of *no_of_regions* as a separate
polydata.
Any help would be much appreciated!
Thanks and Regards,
Mallikarjun
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers