How to handle the mirroring effect

Hi there,
I have to handle the mirroring effect for some of my data; to do so, i applied the scaling of -1 of the data actor but the thing is the volume data diseappears; so when I zoom in very close, it appears again.
How can i solve this?
Thanks

Hi,

Can you, please, share de code?

regards,

PC

1 Like

The mirroring effect has gone as i wanted but I have to zoom in order to see the volume again.
Thanks

I believe you need to share way more than just that.

Well, the only thing I did after rendering my volume using vtkSmartVolumeMapper (the left image), is to grap the volume actor and apply the scaling (the rigth image). I don’t know what else you want to know!

I’m not sure if mappers work if you apply a user transform with a negative determinant (e.g., invert a single axis), because that essentially turns the actor inside out. Maybe it is not that but you simply need to update your camera clipping planes to account for the new position of the volume.

However, you would be much better off spending time with understanding why do you have image flip and fix that. Maybe your image is flipped because you have not ordered the slices correctly.

1 Like

Thank you, I will see the camera flipping planes.
And for the volume, I know why it has the mirror effect; also I do want to have mirror effect correction in my application .
Thanks

Clipping planes (not flipping). If that does not solve all the issues then you may need to change the image data (resample) instead of just changing the rendering actor.

Okay, thank you. I will try that!