<div dir="ltr">Hi all,<div><br></div><div>I am using vtkInteractorStyleTrackballActor to move a single actor. As I have one LUT for all objects (to get the same elevation colors), I run the transformation matrix on vtkTransformPolyDataFilter to get the new correct bounds and to compute the LUT. </div><div><pre style="font-family:consolas;color:gainsboro;background:rgb(30,30,30)"><span style="color:rgb(218,218,218)">actor</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">GetMatrix</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(200,200,200)">matrix</span><span style="color:rgb(180,180,180)">);</span><br></pre></div><div><pre style="font-family:consolas;color:gainsboro;background:rgb(30,30,30)"><span style="color:rgb(78,201,176)">vtkSmartPointer</span><span style="color:rgb(180,180,180)"><</span><span style="color:rgb(78,201,176)">vtkTransform</span><span style="color:rgb(180,180,180)">></span> <span style="color:rgb(200,200,200)">transform</span> <span style="color:rgb(180,180,180)">=</span> <span style="color:rgb(78,201,176)">vtkSmartPointer</span><span style="color:rgb(180,180,180)"><</span><span style="color:rgb(78,201,176)">vtkTransform</span><span style="color:rgb(180,180,180)">>::</span><span style="color:rgb(200,200,200)">New</span><span style="color:rgb(180,180,180)">();</span>
<span style="color:rgb(200,200,200)">transform</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">SetMatrix</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(200,200,200)">matrix</span><span style="color:rgb(180,180,180)">);</span>
<span style="color:rgb(218,218,218)">filter</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">SetTransform</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(200,200,200)">transform</span><span style="color:rgb(180,180,180)">);</span></pre></div><div>The z position is 180.</div><div><br></div><div>The problem is, that the position of the actor is not the correct position in the whole scene. What am I missing? What I am doing wrong?</div><div><br></div><div><img src="cid:ii_15bec2b6f65a73e5" alt="Inline image 1" width="544" height="401"><br></div><div><br></div><div>When doing a translation in z direction of 340 with transform->Translate(0.0, 0.0, 340), the computations are correct:</div><div><br></div><div><img src="cid:ii_15bec30c56fe4c43" alt="Inline image 2" width="544" height="386"><br></div><div><br></div><div>Thank you very much in advance for any hint!<br><br>Regards,<br><br>Bea</div></div>