<html><head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style></head><body class="hmmessage">Hi,<br>
<br>
You solution doesn't work because do you not connect the output of trF to the mapper of the actor.
Btw, if you want to apply a user defined transformation matrix to your actor, simply use:
vtkActor::SetUserMatrix.<br>
<br>
best,<br>
Jeroen<br>
<div><font size="2"></font> </div><br><div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"> <hr tabindex="-1"> <font face="Tahoma" size="2"> <b>From:</b> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>On Behalf Of </b> Giancarlo Amati<br> <b>Sent:</b> Monday, March 30, 2009 7:03 PM<br> <b>To:</b> vtkusers@vtk.org<br> <b>Subject:</b> [vtkusers] vtkTransformFilter<br> </font><br></div><div></div>
Hi everybody,<br><br>I
have an object picked usint VTkpicker....and I can recover its actor. now, I also define a
vtkMatrix4x4 which is a rigid transformation matrix.<br>I want to apply that transformation to the object and I wrote this:<br><br>vtkTransform *tr = vtkTransform::New();<br> tr->SetMatrix(m);<br> tr->Update();<br><br> vtkTransformFilter *trF = vtkTransformFilter::New();<br> trF->SetInput(tmpAct->GetMapper()->GetInput());<br> trF->SetTransform(tr);<br> trF->Update();<br><br>where tmpAct is the actor picked by the picker.<br>So I thought that after refreshing the visualization I should see the object modified, but it doesn't....so where's the trick?<br><br>Kind Regards.<br>Giancarlo<br><br><hr>La tua immagine personale dinamica per Messenger? <a href="http://clk.atdmt.com/GBL/go/136430519/direct/01/" target="_new">Creala gratis con Avatar Studio!</a></body></html>