[vtkusers] vtkTransformFilter
    J.S.Wijnhout at lumc.nl 
    J.S.Wijnhout at lumc.nl
       
    Tue Mar 31 06:30:14 EDT 2009
    
    
  
Hi,
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.
best,
Jeroen
 
________________________________
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Giancarlo Amati
Sent: Monday, March 30, 2009 7:03 PM
To: vtkusers at vtk.org
Subject: [vtkusers] vtkTransformFilter
Hi everybody,
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.
I want to apply that transformation to the object and I wrote this:
vtkTransform *tr = vtkTransform::New();
        tr->SetMatrix(m);
        tr->Update();
        vtkTransformFilter *trF = vtkTransformFilter::New();
        trF->SetInput(tmpAct->GetMapper()->GetInput());
        trF->SetTransform(tr);
        trF->Update();
where tmpAct is the actor picked by the picker.
So I thought that after refreshing the visualization I should see the object modified, but it doesn't....so where's the trick?
Kind Regards.
Giancarlo
________________________________
La tua immagine personale dinamica per Messenger? Creala gratis con Avatar Studio! <http://clk.atdmt.com/GBL/go/136430519/direct/01/> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090331/194096e0/attachment.htm>
    
    
More information about the vtkusers
mailing list