# Seek advice on merge surfaces

**URL:** <https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682>\
**Category:** Support\
**Tags:** vtk, python\
**Created:** [August 3, 2024, 11:08am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682 "2024-08-03T11:08:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lulu](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lulu](https://discourse.slicer.org/u/Lulu)\
**Post date:** [August 3, 2024, 11:08am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/1 "2024-08-03T11:08:24Z")

</div>

I’m working on a project to reconstruct the surface of the bronchi.  
My idea is to generate tubes to compensate for the end loss of the model after smoothing.  
I generated tubes of different sizes through the centerline. And I want to merge it with the original bronchi surface.Do you have any good suggestions？  
This is the current generated surface and the original surface

 ![6a5ced1a045ed049bc198693cce603b](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/844fbffac3069aea0e8a4c6c7df06a82c2743245.jpeg)  
This is a similar effect I want to achieve.  
 ![a4d2e340866f06ce816f7b5bb50d839](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/a/1a5f197d4779cecb3575829215dc4d17a484623d.png)

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [August 3, 2024, 7:53pm UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/2 "2024-08-03T19:53:03Z")

</div>

If I understood well you need to use “union” operation of CombineModels module from Sandbox extension.

HIH

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 3, 2024, 9:21pm UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/3 "2024-08-03T21:21:25Z")

</div>

There are vessel surface reconstruction filters in VMTK that do exactly this. There is no GUI for this reconstruction but you can use the filters in Slicer’s Python console.

---

<div class="post-metadata">

**Author:** ![Santiago\_Cutiller](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/santiago_cutiller/32/5909_2.png) [@Santiago\_Cutiller](https://discourse.slicer.org/u/Santiago_Cutiller)\
**Post date:** [August 4, 2024, 4:09am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/4 "2024-08-04T04:09:31Z")

</div>

Hi!  
How did you generate tubes of different sizes through the centerline?

---

<div class="post-metadata">

**Author:** ![Lulu](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lulu](https://discourse.slicer.org/u/Lulu)\
**Post date:** [August 6, 2024, 2:03am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/6 "2024-08-06T02:03:59Z")

</div>

Thank you for your advice.  
I’m sorry to reply so late.I tried your suggestion, but it didn’t work.I guess because both models are mesh.I don’t know if this is the right guess

---

<div class="post-metadata">

**Author:** ![Lulu](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lulu](https://discourse.slicer.org/u/Lulu)\
**Post date:** [August 6, 2024, 2:11am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/7 "2024-08-06T02:11:56Z")

</div>

hi,  
I am glad to receive your suggestion and apologize for the late response.  
I’m not very good with VMTK.Can you tell me how to use this filers？The code would be even better，because I want to integrate it into my code，Automate the entire process.  
Thank you again

---

<div class="post-metadata">

**Author:** ![Lulu](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lulu](https://discourse.slicer.org/u/Lulu)\
**Post date:** [August 6, 2024, 2:13am UTC](https://discourse.slicer.org/t/seek-advice-on-merge-surfaces/37682/8 "2024-08-06T02:13:02Z")

</div>

hi，  
I used slicer to extract the centerline of the trachea, then exported the file and read the data through VTK.And then rebuild by vtk example TubesWithVaryingRadiusAndColors.
