# VMTK Extract Centerline with python console

**URL:** https://discourse.slicer.org/t/vmtk-extract-centerline-with-python-console/31596
**Category:** Support
**Tags:** vmtk-centerline
**Created:** [September 6, 2023, 7:17pm UTC](https://discourse.slicer.org/t/vmtk-extract-centerline-with-python-console/31596 "2023-09-06T19:17:33Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [September 14, 2023, 2:26pm UTC](https://discourse.slicer.org/t/vmtk-extract-centerline-with-python-console/31596/7 "2023-09-14T14:26:01Z")

</div>

This is the current code as referenced by @chir.set : [https://github.com/vmtk/SlicerExtension-VMTK/blob/master/CrossSectionAnalysis/CrossSectionAnalysis.py](https://github.com/vmtk/SlicerExtension-VMTK/blob/master/CrossSectionAnalysis/CrossSectionAnalysis.py)  
Hopefully that will be helpful. I have not ended up using the CrossSectionAnalysis module at all in my work so I don’t have any experience or outside code that uses it. If you run into a specific problem, it’s fine to post back here and we’ll see if we can help.

---

_[View the full topic](https://discourse.slicer.org/t/vmtk-extract-centerline-with-python-console/31596)._
