Mirror the 3D view

Hi devs.

In my application the user may input CTs with mismatched directions. The user can solve this by turning on mirroring (or may be he wants mirroring for another valid reason).
I have already set up mirroring on sliceViews and it works well. I was trying to mirror the 3D view but I cannot find another way that is not applying a transform to the CT. The disadvantage of this method is that I have other planning models that would need the same transform applied to them. That transform should be applied through out the whole software to all objects in the scene. That would increase the complexity of the code unnecessary if there is another way.

Can this be done in other way?

I’m not sure exactly what you mean here, but fixing the data sounds like a much better solution than trying to support mirrored data through the whole app.

Can you give examples?

1 Like

I’m not really sure why me client asked me for this. I’ll ask him.

But one reason could be that he sent me a cadaver CT that was taken on prone position and the radiologist didn’t know how to fix it and he wanted to use it in the software anyway. And it is hard for him to mirror the CT like you and I would do on Slicer normally using the transforms module.

Another reason would be that I have seen software of the competence that has this feature.

Here is a video of what we’d like to achieve:

There are flipHorizontal and flipVertical 3D-view buttons. In this example they are clicked twice fastly.

Flipping the data left/right on a surgery guidance system sounds just wrong and dangerous to me. Please try to work with them to get the data correct with respect to patient coordinates and only implement flipping if you completely understand why it is an okay operation.


Thank you for your concern Steve. You have a really valid point. I haven’t realized about this risk.
I’ll ask my client if he understands the potencial missuse of the software this feature would allow.
I think he asked me for development of a lot of these toolbar features like zoom, rotate, flip just because he saw it on software of big companies


This is a valid concern.
however situation is mostly the opposite.

What if you are all prepped up for surgery and during surgery one finds that the sides in the IGS system is flipped with respect to the patient and there is no way to correct this

then the surgeon will be in trouble