# spline to 2D mesh?

**URL:** https://discourse.vtk.org/t/spline-to-2d-mesh/10142
**Category:** Support
**Created:** [December 9, 2022, 10:10pm UTC](https://discourse.vtk.org/t/spline-to-2d-mesh/10142 "2022-12-09T22:10:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AndreAhmed](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andreahmed/32/6061_2.png) [@AndreAhmed](https://discourse.vtk.org/u/AndreAhmed)
#### Post date: [December 9, 2022, 10:10pm UTC](https://discourse.vtk.org/t/spline-to-2d-mesh/10142/1 "2022-12-09T22:10:26Z")

</div>

Is there a way in VTK to create from an spline a 2DMesh ?

---

<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: [December 10, 2022, 3:37am UTC](https://discourse.vtk.org/t/spline-to-2d-mesh/10142/2 "2022-12-10T03:37:57Z")

</div>

What we usually do is to warp a disk using thin-plate spline transform, by transforming the disk circumference points to the curve points. It creates a soap-bubble-like surface. See it in action here:

[![](https://discourse.vtk.org/uploads/default/original/2X/e/e56d7eeb418cc3b795f61d9332ce262e85685a92.jpeg "Design surface patches using new Baffle Planner module") ](https://www.youtube.com/watch?v=AigTwMYRI1Y)

Source code is available here: [https://github.com/SlicerHeart/SlicerHeart/blob/master/BafflePlanner/BafflePlanner.py](https://github.com/SlicerHeart/SlicerHeart/blob/master/BafflePlanner/BafflePlanner.py)
