<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#003333">
<font size="-1"><font face="Tahoma">Hi all,<br>
<br>
<font size="-1"><font size="-1"><font size="-1">After moving a
vtkActor<font size="-1">, I want to propagate the
transformation to its vtk<font size="-1">P</font>olydata</font></font></font>.
<br>
<br>
My code</font> :<br>
<br>
<font size="-1"><font size="-1"><font size="-1">v</font></font>tkMatrix4x4*
<font size="-1">matrix = </font>actor->GetMatrix()</font>;<br>
</font></font><br>
<font size="-1"><font face="Tahoma"><font size="-1">vtkSmartPointer<vtkTransform>
transform = vtkSmartPointer<vtkTransform>::New();</font></font></font><br>
<font size="-1"><font face="Tahoma"><font size="-1">transform->SetMatrix(
matrix );</font></font></font><br>
<br>
<font size="-1"><font face="Tahoma"><font size="-1">vtkSmartPointer<vtkTransformPolyDataFilter>
filter=
vtkSmartPointer<vtkTransformPolyDataFilter>::New();</font></font></font><br>
<font size="-1"><font face="Tahoma"><font size="-1">filter->SetTransform(
transform);</font></font></font><br>
<font size="-1"><font face="Tahoma"><font size="-1">filter->SetInput(<font
size="-1"> <font size="-1">polyData</font></font>);</font></font></font><br>
<font size="-1"><font face="Tahoma"><font size="-1">filter->Update();</font></font></font><br>
<br>
<font size="-1"><font face="Tahoma"><font size="-1"><font size="-1"><font
face="Tahoma"><font size="-1"><font size="-1"><font
size="-1">polyData</font></font></font></font></font>-><font
size="-1">DeepCopy( </font>filter->GetOutput());</font></font></font><br>
<br>
How can I prevent the actor from being updated again ?<br>
I tried to apply the reverse matrix to the actor but I failed, I'm a
little bit confused about which function I have to call, (
PokeMatrix() ? Set/AddPosition() ? ... ).<br>
<br>
Thanks by advance for helping me.<br>
<br>
</body>
</html>