How to get each region as a polydata using vtkConnectedPointsFilter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to get each region as a polydata using vtkConnectedPointsFilter

mallikarjun49
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