# Intersection between markups closed curve node on the plane and a line

**URL:** <https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281>\
**Category:** Development\
**Tags:** markups\
**Created:** [April 24, 2020, 6:53am UTC](https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281 "2020-04-24T06:53:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [April 24, 2020, 1:12pm UTC](https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281/5 "2020-04-24T13:12:29Z")

</div>

VTK locators can compute all intersection points of a polydata with a line extremely fast, for example [vtkCellLocator::IntersectWithLine](https://vtk.org/doc/nightly/html/classvtkCellLocator.html#a027818794762a37868a3dccc53ad6e81). You can get the curve as polydata by calling [GetCurveWorld](http://apidocs.slicer.org/master/classvtkMRMLMarkupsNode.html#af52fa681f15f117c5e003d63a88c2e9a) method of the curve node.

---

_[View the full topic](https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281)._
