# Funtion or Equation of centreline

**URL:** <https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640>\
**Category:** VMTK\
**Created:** [August 4, 2022, 1:31pm UTC](https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640 "2022-08-04T13:31:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mann](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mann/32/15646_2.png) [@mann](https://discourse.slicer.org/u/mann)\
**Post date:** [August 4, 2022, 1:31pm UTC](https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640/1 "2022-08-04T13:31:29Z")

</div>

Hi All,

I am using Extract centreline module for creating vessel centreline.

1. Is their any way that I can get the function or equation that used to connect the control points ?
2. Is there a way to edit/crop the centreline once it is created and update the properties table ?

Thank you for the help  
Manjunath

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [August 4, 2022, 8:41pm UTC](https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640/2 "2022-08-04T20:41:01Z")

</div>

Hi

For 1.  
Here is the code

> <https://github.com/Slicer/Slicer/blob/a5f75351073ef62fd6198d9480d86c0009d70f9b/Modules/Loadable/Markups/MRML/vtkCurveGenerator.cxx>

For 2.  
I think there should be a script for that here:

> **[vmtk/vmtkScripts at master · vmtk/vmtk](https://github.com/vmtk/vmtk/tree/master/vmtkScripts)**
>
> master/vmtkScripts

Hope it helps

---

<div class="post-metadata">

**Author:** ![mann](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mann/32/15646_2.png) [@mann](https://discourse.slicer.org/u/mann)\
**Post date:** [August 9, 2022, 3:35pm UTC](https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640/3 "2022-08-09T15:35:03Z")

</div>

Hi,

Thanks for the reply.  
But I am weak on coding side. Can you please tell me how can I use these codes to get things done.

Thanking you again

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [August 9, 2022, 8:57pm UTC](https://discourse.slicer.org/t/funtion-or-equation-of-centreline/24640/4 "2022-08-09T20:57:29Z")

</div>

In the second link I posted there should be one script that let’s you extract part of the centerline. You have to search for it reading each script name.

If you don’t find it let me know and I’ll search on Github myself and try to find it
