# Segmentation Fault

**URL:** https://discourse.vtk.org/t/segmentation-fault/1540
**Category:** Development
**Created:** [August 9, 2019, 1:45pm UTC](https://discourse.vtk.org/t/segmentation-fault/1540 "2019-08-09T13:45:55Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 11, 2019, 4:02am UTC](https://discourse.vtk.org/t/segmentation-fault/1540/3 "2019-08-11T04:02:26Z")

</div>

I have built VTK in debug mode and could immediately see where and why the crash happens, but for that I would need a complete self-contained example that I can just copy-paste to the Python console. You need to provide input data, preferable download it as part of the script.

By the way, if your goal is to create closed surface from parallel contours then most likely there are better approaches. For example, check out the answers given in these topics:

> [@Mesh From Contours](https://discourse.vtk.org/t/mesh-from-contours/896):
>
> Hi Guys, I have a question regarding the algorithm from vtk to use for creating a mesh out of contours I have. The contours are not necessarily parallel and the structure is a vessel with one/two branches. What is the good way to convert this contour set to a mesh in VTK/ITK? Thanks

> [@Problems using vtkContourWidget, vtkAppendPolyData, and vtkDelaunay3D](https://discourse.vtk.org/t/problems-using-vtkcontourwidget-vtkappendpolydata-and-vtkdelaunay3d/1480/2):
>
> It seems that a convex hull is generated, which is what vtkDelaunay3D is expected to do. You can adjust alpha parameters on the vtkDelaunay3D filter, to make it generate concave objects, but it may make mesh generation fail. Alternatively, if the shape is just slightly concave then you may get away without using alpha shapes and applying vtkButterflySubdivisionFilter on the output. You can try both these options in 3D Slicer’s Markups To Model module (install 3D Slicer and then in the Slicer …

---

_[View the full topic](https://discourse.vtk.org/t/segmentation-fault/1540)._
