Hi,<div><br></div><div>I am using vtkPolygonalHandleRepresentation3D to control position of a model I created. I am trying to apply a transformation matrix to it to make it move in a predefined way. For doing this I have a bunch of vtkTransforms.</div>
<div>At first, (before using vtkPolygonalHandleRepresentation3D) I applied the transform through the Actor using myActor-&gt;SetUserTransform( myvtkTransform )</div><div><br></div><div>But since I also wanted to create an interaction with the object, I put it inside a vtkPolygonalHandleRepresentation3D by deriving a class called myObjectRepresentation from vtkPolygonalHandleRepresentation3D. But now I am no longer able to apply the transform to the object properly. Since vtkPolygonalHandleRepresentation3D has a member variable called Actor, I created a function</div>
<div><br></div><div><div>void myObjectRepresentation::SetTransform( vtkTransform *_trf )</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>this-&gt;Actor-&gt;SetUserTransform( _trf );</div>
<div>}</div><div><br></div><div>This does the trick, but after I apply the trasnform I am not able to interact with the object properly. It moves in some random direction when I try to move it.</div><div><br></div><div>Can someone help me out. I can provide more details on request.</div>
<div><br></div><div>Thank you.</div><div><br></div></div>