# Centering slice view not going to center of transformed volume

**URL:** <https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485>\
**Category:** Support\
**Created:** [September 14, 2020, 10:40pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485 "2020-09-14T22:40:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 14, 2020, 10:40pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/1 "2020-09-14T22:40:55Z")

</div>

I loaded a 2D sequence volume and created a transform to apply to the sequence setting spacing for X, Y, and Z dimensions. Z was set to 0.2mm from a default of 1.0mm. However, centering the axial red slice after applying the transform appears to still center to the position of the original bounds in Z which was a default 1.0mm. However after dragging the axial red slider to the ends and back it then fixes itself in regards to having the center of the slider mean the center of the bounds. Is there something else I can call to trigger this update? Or is there something else incorrect in this method of applying spacing?

After clicking center button for axial red slice:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/4/64f8a7f0cc7f2f0e53e6dcc9c4f7ff711fd812cb.png)

After dragging the axial red slider to the ends and back:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/8/089522e7c3b2cdfa4a093b30d7d4deafd809cec2.png)

---

<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:** [September 15, 2020, 4:08am UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/2 "2020-09-15T04:08:07Z")

</div>

Can you share an example scene?

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 15, 2020, 12:36pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/3 "2020-09-15T12:36:20Z")

</div>

Here is an [example scene](https://sonovolinc-my.sharepoint.com/:u:/g/personal/jbutler_sonovol_com/ESKaVQLYHGNLnHnhb97DB_gBg_d2VMPLobpkIqM10SgL6Q?e=Lcn6kx). When you turn on slice intersection and then click the center button for the red axial slice view, it is not centering to volume bounds.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 15, 2020, 11:45pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/4 "2020-09-15T23:45:36Z")

</div>

@lassoan have you had a chance to take a look at the scene provided?

---

<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:** [September 16, 2020, 11:35am UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/5 "2020-09-16T11:35:35Z")

</div>

I was able to reproduce the problem and I’m working on it.

---

<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:** [September 16, 2020, 6:52pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/6 "2020-09-16T18:52:10Z")

</div>

I’ve [fixed the issue](https://github.com/Slicer/Slicer/commits/master), tomorrow’s Preview Release should work well.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 17, 2020, 1:13pm UTC](https://discourse.slicer.org/t/centering-slice-view-not-going-to-center-of-transformed-volume/13485/7 "2020-09-17T13:13:49Z")

</div>

Thanks! I tried my scene again and the fix appears to work well.
