# How to extract both x-, y-, z-coordinates and normalvector at each point of centerline of airwaysegmentation

**URL:** <https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353>\
**Category:** Development\
**Tags:** centerlines\
**Created:** [April 8, 2024, 1:34pm UTC](https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353 "2024-04-08T13:34:02Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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 24, 2024, 7:44am UTC](https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353/11 "2024-08-24T07:44:13Z")

</div>

> [@Johan\_Rubak](#):
>
> For the plotting i was using matplotlib, but have also good succes with open3d, but it is not applicable with newer versions of python.

You can get really good, interactive plots right in Slicer’s 3D viewer, by simple Python scripting. For example, you can plot the tangent, normal, and binormal for each curve control point with a [short Python script](https://discourse.slicer.org/t/how-can-i-draw-normal-vectors-of-a-centerline-in-the-3d-slicer/37933/4):

[![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/7/3794275dd32e10a919d845740a17950db4e1ce8c.jpeg)](https://discourse.slicer.org/t/how-can-i-draw-normal-vectors-of-a-centerline-in-the-3d-slicer/37933/4)

---

_[View the full topic](https://discourse.slicer.org/t/how-to-extract-both-x-y-z-coordinates-and-normalvector-at-each-point-of-centerline-of-airwaysegmentation/35353)._
