# How to slice along a curve and display it in 2D view in real time

**URL:** <https://discourse.slicer.org/t/how-to-slice-along-a-curve-and-display-it-in-2d-view-in-real-time/30711>\
**Category:** Support\
**Created:** [July 20, 2023, 5:25pm UTC](https://discourse.slicer.org/t/how-to-slice-along-a-curve-and-display-it-in-2d-view-in-real-time/30711 "2023-07-20T17:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [July 20, 2023, 5:25pm UTC](https://discourse.slicer.org/t/how-to-slice-along-a-curve-and-display-it-in-2d-view-in-real-time/30711/1 "2023-07-20T17:25:38Z")

</div>

In the video, I need to constantly rotate the yellow line to make sure that the yellow line is basically perpendicular to the curve, and then I can see the result I want in the sagittal view.  
Is there any way to automatically set the yellow line to slide along the curve instead of a fixed straight line?  
If there is a way, I can write a small script or module, but I don’t know how to implement it now.

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/d/5de1fc82108ae7928cac05813f8a5562c6bf5d2f.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/d/5de1fc82108ae7928cac05813f8a5562c6bf5d2f.mp4)

---

<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:** [July 20, 2023, 7:42pm UTC](https://discourse.slicer.org/t/how-to-slice-along-a-curve-and-display-it-in-2d-view-in-real-time/30711/2 "2023-07-20T19:42:42Z")

</div>

You might be looking for ‘Cross-section analysis’ module in SlicerVMTK extension. It can take an open curve as single input and reslice a specified slice view perpendicular to the curve.
