# Broken centerline model with continuous voronoi diagram

**URL:** https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755
**Category:** Support
**Tags:** centerlines, vmtk-centerline
**Created:** [April 26, 2024, 4:24pm UTC](https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755 "2024-04-26T16:24:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ruili](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@ruili](https://discourse.slicer.org/u/ruili)
#### Post date: [April 26, 2024, 4:24pm UTC](https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755/1 "2024-04-26T16:24:52Z")

</div>

Hello,

I have been using the Extract Centerline module to extract the centerlines from some vessel segmentation. However, I have been struggling to get a fully connected centerline model even though the segmentation is all connected. In particular, I found on one vessel where the centerline model is broken even though the voronoi diagram seems all connected. I have attached a screenshot below, and you can find the mrb file of my scene here: [2024-04-26-Scene.mrb - Google Drive](https://drive.google.com/file/d/1UTtuBIo1IZPRGUIyXrbESuSGfNbuu9Uj/view?usp=sharing).

 ![Screenshot 2024-04-26 at 17.09.27](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/6/165426fedc294e1290126e7a816750dc531baf3c.jpeg)

Does anyone know why this is happening? I thought if the voronoi diagram seems to be connected, it means the centerline extraction algorithm can reach those regions and thus the centerline model should extend there as well. Many thanks in advance!

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [April 27, 2024, 8:23am UTC](https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755/2 "2024-04-27T08:23:49Z")

</div>

Using ‘Smoothing / Fill holes’ with a kernel size of 0.3 mm, and using the sphere brush on the ignored part in 3D view, the centerline could be completely extracted, and the surface is not visually altered after smoothing.

---

<div class="post-metadata">

### Author: ![ruili](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@ruili](https://discourse.slicer.org/u/ruili)
#### Post date: [April 27, 2024, 11:11am UTC](https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755/3 "2024-04-27T11:11:42Z")

</div>

Thanks! Do you mean using the “smoothing” tool from the segmentation editor as shown here:  
 ![Screenshot 2024-04-27 at 12.07.23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/5/65ee6dcef76ed9f683bb11e4db1f19b76b6f484a.png)

You are right that after this smoothing, the surface is not visually altered, so it was diffitult to tell what I have done. I tried the setting shown in the screenshot, but I was still unable to extract that part. May I ask if you used a different setting?

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [April 27, 2024, 11:36am UTC](https://discourse.slicer.org/t/broken-centerline-model-with-continuous-voronoi-diagram/35755/4 "2024-04-27T11:36:08Z")

</div>

Click on ‘Edit in 3D views’ and use the brush in the 3D view to smooth only that part of the model with no centerline.

 ![centerline_complete](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/b/2bc41574d28fed77a0bd871518d28ff1e653e172.png)
