# Automate extracting slices along centerline of the vasculature

**URL:** https://discourse.paraview.org/t/automate-extracting-slices-along-centerline-of-the-vasculature/8355
**Category:** ParaView Support
**Created:** [November 9, 2021, 12:22am UTC](https://discourse.paraview.org/t/automate-extracting-slices-along-centerline-of-the-vasculature/8355 "2021-11-09T00:22:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Akshar\_brahma](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akshar_brahma/32/7908_2.png) [@Akshar\_brahma](https://discourse.paraview.org/u/Akshar_brahma)
#### Post date: [November 9, 2021, 12:22am UTC](https://discourse.paraview.org/t/automate-extracting-slices-along-centerline-of-the-vasculature/8355/1 "2021-11-09T00:22:20Z")

</div>

Hi,  
I want to automate extracting slices along the centerline of a vasculature at a constant distance of lets say (x mm). I tried using slice along the polyline with programmable filter but its giving me a slice tangential to centerline. The centerline is in .vtp format and was extracted using vmtk. I could easily get the coordinates of the points on the centerline but the normal is not updated for these points. The target is to plot average field values on these slices.  
Any suggestions shall be appreciated.  
Thanks

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 10, 2021, 8:55am UTC](https://discourse.paraview.org/t/automate-extracting-slices-along-centerline-of-the-vasculature/8355/2 "2021-11-10T08:55:57Z")

</div>

I’m afraid you will need to manually configure each of the slice, you could do that with a python script though.
