# create separated regions from polydata

**URL:** https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409
**Category:** Support
**Tags:** python
**Created:** [January 9, 2023, 5:32pm UTC](https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409 "2023-01-09T17:32:28Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [March 28, 2023, 1:58pm UTC](https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409/22 "2023-03-28T13:58:50Z")

</div>

> [@marcomusy](#):
>
> it is crashing because it needs polygons, not just lines.

This is what I meant by some oddity in the dataset causing the crash. Hence, I believe @PBrockmann could join the lines with coincident vertexes to form a single polyline and then process it with `vtkPolyDataEdgeConnectivityFilter `: [vtkStripper not joining contiguous lines to form a single vtkPolyLine.](https://discourse.vtk.org/t/vtkstripper-not-joining-contiguous-lines-to-form-a-single-vtkpolyline/2402)

---

_[View the full topic](https://discourse.vtk.org/t/create-separated-regions-from-polydata/10409)._
