<br><div class="gmail_quote">On Tue, Aug 4, 2009 at 5:19 AM, Dmitri Danewitz <span dir="ltr"><<a href="mailto:d.danewitz@yahoo.de">d.danewitz@yahoo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Hello folks!</div>
<div> </div>
<div>Is there a way to rotate / translate a vtkPolyData in a such way that not only the borders of the vtkPolyData are moved, but also the values in the polyData?</div>
<div> </div>
<div>For example if I haf a PolyData with 1x1 coordinates which are:</div>
<div> </div>
<div>x = 0, y = 0 </div>
<div>with the value 6 in that location and I move it to:</div>
<div> x = x +100 </div>
<div>so that the new coordinates are :</div>
<div>x = 100, y = 0 </div>
<div>and the value would still be 6</div>
<div> </div>
<div>Does someone know how to do such a thing?</div>
<div> </div>
<div>Greets</div>
<div>Dmitri </div></td></tr></tbody></table><font color="#888888"><br>
</font></blockquote><div><br>I assume by the "value" you mean you have a double array (or some other type) associated with the data. In that case, you do not have to do anything special to "move" the values. The geometry is indexed (point 0, point 1, etc) the same way as the array is, so if the geometry moves, the array is still associated with the correct point without any action on your part.<br>
<br>Is this what you are talking about?<br><br clear="all">Thanks,<br><br>David <br></div></div>