# how to improve the CenterLine extraction

**URL:** https://discourse.slicer.org/t/how-to-improve-the-centerline-extraction/44365
**Category:** Support
**Created:** [September 5, 2025, 4:58pm UTC](https://discourse.slicer.org/t/how-to-improve-the-centerline-extraction/44365 "2025-09-05T16:58:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![amscosta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amscosta/32/80975_2.png) [@amscosta](https://discourse.slicer.org/u/amscosta)
#### Post date: [September 5, 2025, 4:58pm UTC](https://discourse.slicer.org/t/how-to-improve-the-centerline-extraction/44365/1 "2025-09-05T16:58:26Z")

</div>

Hello,

Need to extract the centerlines from a stl file. Please see the attached pictures. Really overwhelmed but the bunch of controls/options available. Could somebody with expertise give some guidelines/directions to follow ? Any output is highly appreciated.

 ![shorter_centerline](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/3/837c5178ed91805c03d186d150f654e5a646c9a8.jpeg)

 ![longer_centerline](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/6/76f25b423fd620786b4d6d8d27280b4f80685fba.jpeg)

 ![longer_centerline2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/ef10f869a70d5851423fe0a4fa8d4cbff875e472.jpeg)

---

<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: [September 5, 2025, 6:22pm UTC](https://discourse.slicer.org/t/how-to-improve-the-centerline-extraction/44365/2 "2025-09-05T18:22:17Z")

</div>

It’s only in the third image that I see a weird path of the centerline on the left end. The Network centerline is purely geometric, the Tree centerline is based on the maximum inscribed sphere. The ‘Cross-section analysis’ module can show you the maximum inscribed sphere. What is troubling you with the centerlines?
