# Obtain Centerline model from centerline curves

**URL:** <https://discourse.slicer.org/t/obtain-centerline-model-from-centerline-curves/35619>\
**Category:** Support\
**Created:** [April 19, 2024, 1:00pm UTC](https://discourse.slicer.org/t/obtain-centerline-model-from-centerline-curves/35619 "2024-04-19T13:00:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bserrano](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bserrano/32/17034_2.png) [@bserrano](https://discourse.slicer.org/u/bserrano)\
**Post date:** [April 19, 2024, 1:00pm UTC](https://discourse.slicer.org/t/obtain-centerline-model-from-centerline-curves/35619/1 "2024-04-19T13:00:04Z")

</div>

Hi all,

I have some markups curves. The points of the curves are created with an external software. I want to use some modules in 3D Slicer but they require a “Centerline model” instead of a centerline curve. How can I generate this model from my curves?

![imagen](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/4663fcb9d3eb47f321fa5ca1ab3e358b7f9c5e45.png)  
 ![imagen](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/4/749f44c873304905ddbe6fc0a2d430d2071d0a18.png)

Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![SANTIAGO\_PENDON\_MING](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/santiago_pendon_ming/32/66060_2.png) [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Post date:** [April 23, 2024, 12:19pm UTC](https://discourse.slicer.org/t/obtain-centerline-model-from-centerline-curves/35619/2 "2024-04-23T12:19:09Z")

</div>

Hi, me and my team are also very interested on this feature. There any way to do it with a Python Script?

---

<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 23, 2024, 1:18pm UTC](https://discourse.slicer.org/t/obtain-centerline-model-from-centerline-curves/35619/3 "2024-04-23T13:18:09Z")

</div>

`model = slicer.modules.models.logic().AddModel(myCurve.GetCurveWorld())`

The new model contains the ‘Radius’ array among others, and lacks 2 other arrays.

How is this useful?

Please note that the modules in SlicerVMTK requiring a centerline model as input expect it to have been created with the ‘Extract centerline’ module.
