# How to reconstruct surface from many contours?

**URL:** https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875
**Category:** Support
**Created:** [October 6, 2019, 8:03am UTC](https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875 "2019-10-06T08:03:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zhang-qiang-github](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhang-qiang-github/32/2519_2.png) [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)
#### Post date: [October 6, 2019, 8:03am UTC](https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875/1 "2019-10-06T08:03:45Z")

</div>

I have several contours, and I want to reconstruct a surface. The _vtkVoxelContourToSurface_ don’t work, because it requires that each contour has a constant Z. However, I want to reconstruct a bending cylinder, in which the contours are not parallel. Is there any other method?

---

<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: [October 7, 2019, 6:05pm UTC](https://discourse.vtk.org/t/how-to-reconstruct-surface-from-many-contours/1875/2 "2019-10-07T18:05:28Z")

</div>

You could use generic surface reconstruction filters for this, if your planes are very close to each other. If this is not the case then you can apply a warping transform (e.g., build a grid transform from the slice plane corners) to all your planes to make them parallel, reconstruct a surface using any of the methods that require planes to be parallel, and apply inverse of the warping transform to the resulting mesh to bring it back to the original space.
