# CenterLine.vtk file is not aligned properly 3D view in slicer4.13

**URL:** https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843
**Category:** Development
**Tags:** file-formats
**Created:** [February 15, 2022, 6:47am UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843 "2022-02-15T06:47:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mahesh\_Timmanagoudar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mahesh_timmanagoudar/32/4693_2.png) [@Mahesh\_Timmanagoudar](https://discourse.vtk.org/u/Mahesh_Timmanagoudar)
#### Post date: [February 15, 2022, 6:47am UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843/1 "2022-02-15T06:47:32Z")

</div>

I have generated VTK file using slicer 4.13 version.

The VTK file looks like below.  
 ![](https://discourse.vtk.org/uploads/default/original/2X/7/78e44f43d8fc311cfb74292526f3b29af375072c.png)

If i try to display above file in 3D view means. It wont align using both LPS and RAS option.  
It will be like below in slicer view.

 ![](https://discourse.vtk.org/uploads/default/original/2X/d/d80163b2767c5f1ce0e044d5f67d464a223b747d.jpeg)

If i change the vtk file like below. (Removed - SPACE=LPS) (second line of vtk file).

![](https://discourse.vtk.org/uploads/default/original/2X/e/edd99763662f5ec0d6e7fb969ba34a891b08ac53.png)

If i try to display the above modified file in slicer using LPS option. Its properly aligning like below.

![](https://discourse.vtk.org/uploads/default/original/2X/d/dd01d008ed10fa80cc1a70161885784b90ffb818.png)

May i know where we can modified these vtk files using code so that it will properly align?

Any suggestion how can i fix this problem?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [February 15, 2022, 4:44pm UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843/2 "2022-02-15T16:44:32Z")

</div>

This question is specific to 3D Slicer, so please ask it on the [Slicer forum](https://discourse.slicer.org/). If you already posted the question there then please copy the link here. Thank you!

---

<div class="post-metadata">

### Author: ![Mahesh\_Timmanagoudar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mahesh_timmanagoudar/32/4693_2.png) [@Mahesh\_Timmanagoudar](https://discourse.vtk.org/u/Mahesh_Timmanagoudar)
#### Post date: [February 16, 2022, 4:55am UTC](https://discourse.vtk.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/7843/3 "2022-02-16T04:55:13Z")

</div>

> **[CenterLine.vtk file is not aligned properly 3D view in slicer4.13](https://discourse.slicer.org/t/centerline-vtk-file-is-not-aligned-properly-3d-view-in-slicer4-13/21975)**
>
> I have generated VTK file using slicer 4.13 version. The VTK file looks like below. If i try to display above file in 3D view means. It wont align using both LPS and RAS option. It will be like below in slicer view. If i change the vtk file...

I have posted the question there. Thank you.
