Hi, David<br><br>Thank you for your reply. I have a followup question.<br><br>I do transformation on my polydata object "face" like this<br><br><b>transform->Scale(2, 2, 2);<br>transformfilter->SetInput(polydata);<br>
transformfilter->SetTransform(transform);<br>transformfilter->Update();<br>polydatamapper->SetInput(transformfilter->GetOutput());<br>actor->SetMapper->(polydatamapper);<br><br>/*------- Few other operatioins, no relative objects changed during this-----------------*/<br>
<br>transform->Scale(3, 3, 3);<br>transformfilter->SetInput(polydata);<br>transformfilter->SetTransform(transform);<br>transformfilter->Update();</b><br><b>polydatamapper->SetInput(transformfilter->GetOutput());<br>
actor->SetMapper->(polydatamapper);</b><br><br>So, after two operations, I think the actor show on the screen should be triple size of the original one. Am I right?<br><br>Thank you very much.<br><br>Long<br><br><div class="gmail_quote">
2011/11/10 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="HOEnZb"><div class="h5">On Thu, Nov 10, 2011 at 10:41 AM, Wenlong Wang <<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I'm using vtkTransformPolydataFilter in my app. According to the documents,<br>
> the filter returns a new polydata object with different world coordinates<br>
> from the original one.<br>
><br>
> My question is, is the filter changes the original data as well? And for the<br>
> result of the filter, is it being replaced if another transformation is<br>
> passed to the filter?<br>
><br>
> Thank you very much.<br>
><br>
> Long<br>
<br>
</div></div>This filter should follow the standard VTK pipeline concepts. It<br>
should not modify the input data, and it if you call Update() a second<br>
time with a different transformation, the output would indeed be<br>
replaced. I'd suggest you make a small demo to convince yourself of<br>
these facts.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br>