# Midpoint of an Open Curve

**URL:** <https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766>\
**Category:** Support\
**Created:** [September 30, 2020, 6:57am UTC](https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766 "2020-09-30T06:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiinaIn3D](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@NiinaIn3D](https://discourse.slicer.org/u/NiinaIn3D)\
**Post date:** [September 30, 2020, 6:57am UTC](https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766/1 "2020-09-30T06:57:20Z")

</div>

Hi there, is there a way to determine a midpoint of an Open curve created in Markups? I.e. midpoint of the length, not centreline.

Or if not with Open curve, possibly for a curve model created using Curve Maker?

Many thanks!

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [September 30, 2020, 9:19am UTC](https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766/2 "2020-09-30T09:19:51Z")

</div>

you can resample the curve to 101 points and the 50th is the midpoint.

---

<div class="post-metadata">

**Author:** ![NiinaIn3D](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@NiinaIn3D](https://discourse.slicer.org/u/NiinaIn3D)\
**Post date:** [October 1, 2020, 12:01am UTC](https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766/3 "2020-10-01T00:01:21Z")

</div>

What a beautiful simple solution, thanks. 👍

---

<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:** [August 8, 2021, 2:02pm UTC](https://discourse.slicer.org/t/midpoint-of-an-open-curve/13766/4 "2021-08-08T14:02:47Z")

</div>

Alternatively (if you don’t want to resample the line but you are comfortable with writing a line of Python code) then you can get the curve length, and then get the coordinate of point along the line at half length.
