<div dir="ltr">Hi Ang,<div><br></div><div>The PokeMatrix() method is an internal method that VTK uses for picking.  If you use it for rendering, it might corrupt the state of the VTK pipeline.</div><div><br></div><div>Use SetUserMatrix() instead.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 18, 2017 at 1:50 AM, Ang <span dir="ltr"><<a href="mailto:ysa0829@gmail.com" target="_blank">ysa0829@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
I would like to flip around X axis for vtkImageSlice (not original pixel<br>
data ,just flip actor),below is my code.<br>
<br>
//****************************<wbr>*******************//<br>
double *tranlate = imageSlice->GetCenter();<br>
<br>
vtkTransform *trans = vtkTransform::New();<br>
trans->PostMultiply();<br>
<br>
trans->Translate(-tranlate[0], -tranlate[1], -tranlate[2]);<br>
trans->RotateY(180);<br>
trans->Translate(tranlate[0], tranlate[1], tranlate[2]);<br>
<br>
imageSlice->PokeMatrix(trans-><wbr>GetMatrix());<br>
//****************************<wbr>*******************//<br>
<br>
As your mentioned in the thread, I cant rotate the vtkImageSlice by using<br>
vtkMatrix so I got wrong result.<br>
<br>
Would you have some suggestion to  flip around X axis for vtkImageSlice?<br></blockquote></div></div></div></div>