<div dir="ltr">You should also try vtkImageSliceMapper instead of vtkImageResliceMapper,<div>perhaps its behavior will better suit your requirements.<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 11:51 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Rick,<div><br></div><div>You're seeing this because you are doing an out-of-plane rotation on an image that has only one slice. The rotation is around the image origin, which (in this case) is at the bottom-left corner of the image.</div><div><br></div><div>The vtkImageResliceMapper has a SetSlicePlane() method:</div><div><a href="http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes#vtkImageResliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/<wbr>Image_Rendering_Classes#<wbr>vtkImageResliceMapper</a><br></div><div>You must rotate this SlicePlane when you rotate the vtkImageSlice.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 10:54 AM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<br></div><div><br></div><div>If I build the example <br></div><div><br></div><div><h1 lang="en"><span style="font-size:12px" dir="auto">VTK/Examples/Cxx/Images/ImageS<wbr>lice</span></h1><div><span dir="auto">and add<br></span></div><div><span dir="auto"><br></span></div><div><span dir="auto"> imageSlice->RotateX(1);</span></div><div><span dir="auto"><br></span></div><div><span dir="auto">Which should, I think, rotate the image actor about its X axis by 1 degree, I instead get<br></span></div><div><span dir="auto"><br></span></div><div><img src="cid:b79b90cf-a651-451b-9a46-fd26b3fee1bb@icloud.com" alt="PastedImage-1.png" title="PastedImage-1.png" style="margin:10px 10px 10px 0px"></div><div><br></div><div>which seems incorrect.<br></div><div><br></div><div>I can rotate about Z.<br></div><div><br></div><div>Is there something I'm not doing correctly, or is this a bug?<br></div><div><br></div><div>I also tried RotateWXYZ(1,1,0,0) and get the same result.<br></div><div><br></div><div>This is VTK 7<br></div><div><br></div><div>Thanks<br></div><div><br></div><div>Rick<br></div><div><br></div><div><br></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>