# VMTK Centerline Add-on for Blender

**URL:** <https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405>\
**Category:** VMTK\
**Tags:** 3d-model, centerlines\
**Created:** [January 8, 2021, 1:54pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405 "2021-01-08T13:54:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajorstad](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ajorstad/32/9460_2.png) [@ajorstad](https://discourse.slicer.org/u/ajorstad)\
**Post date:** [January 8, 2021, 1:54pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405/1 "2021-01-08T13:54:16Z")

</div>

My team has developed an add-on for Blender that loads centerlines generated by VMTK into Blender, and writes meshes from Blender so that they can be easily read by VMTK. The add-on has now been updated for the stable long-term support version of Blender (2.83), and I wanted to provide a link to the new software.

Documentation and code is available here:

> **[NeuroMorph-EPFL/NeuroMorph](https://github.com/NeuroMorph-EPFL/NeuroMorph/wiki/Centerlines-and-Cross-Sections)**
>
> Centerlines-and-Cross-Sections

The add-on includes a simple mesh-cleaning routine that helps the VMTK tool function better on Blender meshes. There are also a couple tools that perform useful functions using the centerlines in Blender, including generating cross-sectional surfaces, projecting objects (for example vesicle spheres) onto the centerline, and detecting swellings (for example boutons) in the mesh.

The old link to instructions in my original announcement from a couple years ago no longer works, would somebody be able to update it?  
[http://www.vmtk.org/news/2017/11/13/vmtk-for-blender.html](http://www.vmtk.org/news/2017/11/13/vmtk-for-blender.html)

Thanks!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 8, 2021, 2:07pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405/2 "2021-01-08T14:07:58Z")

</div>

Very nice work!

> [@ajorstad](#):
>
> would somebody be able to update it?

I don’t think anyone on the Slicer core team has rights to the vmtk wiki - maybe contact the VMTK maintainers?

---

<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:** [January 8, 2021, 2:22pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405/3 "2021-01-08T14:22:26Z")

</div>

@ajorstad Please send a pull request with the proposed changes ([vmtk.github.com/news/\_posts/2017-11-13-vmtk-for-blender.md at master · vmtk/vmtk.github.com · GitHub](https://github.com/vmtk/vmtk.github.com/blob/master/news/_posts/2017-11-13-vmtk-for-blender.md)). Probably don’t remove the old link but add up-to-date links for 2.6 and 2.8.

Note that the news section is removed from the website, because users will not find changes on a static website but expect to get notifications via twitter or forums. You can post in the VMTK forum (as you have done) and maybe tweet with use [#vmtk](https://twitter.com/hashtag/vmtk) to reach users.

@lantiga Currently, the twitter icon on [vmtk.org](http://vmtk.org) goes to [@orobix](https://twitter.com/orobix). Should we change it to go to [#vmtk](https://twitter.com/hashtag/vmtk) instead?

> [@pieper](#):
>
> I don’t think anyone on the Slicer core team has rights to the vmtk wiki - maybe contact the VMTK maintainers?

@pieper This post is in the Community/VMTK category, which is intended to all VMTK users and developers (recently VMTK forum was moved here).

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 8, 2021, 2:34pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405/4 "2021-01-08T14:34:12Z")

</div>

> [@lassoan](#):
>
> recently VMTK forum was moved here

Oh, cool - hello vmtkers!

---

<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:** [January 8, 2021, 4:08pm UTC](https://discourse.slicer.org/t/vmtk-centerline-add-on-for-blender/15405/5 "2021-01-08T16:08:51Z")

</div>

@ajorstad This is very nice work. Blender is an extremely complex software, which puts your work out of reach for most potentially interested users. Have you considered porting your Python script to 3D Slicer as well?

I know that Slicer is not simple either, but still many more medical image computing users are familiar with it than Blender. We vastly improved 3D Slicer’s widget infrastructure in the past year. For example, you can natively edit curves in 3D and slice views. Many things are now possible to do in Slicer that a few years ago still required Blender.

Slicer should be a friendlier development environment for you, too. SlicerVMTK extension takes care of installing and setting up VMTK, already has modules for segmentation, extracting, visualizing, editing, quantifying centerlines, etc. We keep improving the infrastructure based on what user needs, so if you miss something for your scripts to work in Slicer then just let us know and we can help. You can install any other Python packages from PyPI. You can even use Blender’s Python package (bpy), if you want to port your script without any algorithmic changes.

A few demo videos of how VMTK can be used in Slicer now:

[![](https://img.youtube.com/vi/WJQexDTiRRc/maxresdefault.jpg "Transform markups between original and straightened vessel") ](https://www.youtube.com/watch?v=WJQexDTiRRc)

[![](https://img.youtube.com/vi/yi07mjr3JeU/maxresdefault.jpg "New vessel branch extraction module for 3D Slicer") ](https://www.youtube.com/watch?v=yi07mjr3JeU)
