<div class="gmail_quote"><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">
<b><blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br><div>Hello David,</div>
<div> </div>
<div>I'm not sure if i explained it right. First I read a VTK file, in which is a rectilinear grid in 3D. And every point of the grid has its value (scalar) (for example, in a 3D room each value is a temperature at its coordinates)</div>
<div> </div>
<div>I now want to move the values in the grid, so that for example</div>
<div> </div>
<div>
<div>x = 0, y = 0, z = 0</div>
<div>with the temperature value 30°C in that location and I move it to:</div><div class="im">
<div> x = x +100 </div>
<div>so that the new coordinates are :</div>
</div><div>x = 100, y = 0, z = 0</div>
<div>and the value has still to be 30°C</div>
<div>this is what I want to reach.</div>
<div>Hope I managed to explain that somehow.</div>
<div> </div>
<div>Greets</div>
<div>Dmitri</div></div></blockquote></b></td></tr></tbody></table><br>
</blockquote></div><br>Dmitri,<br><br>Please reply to the list rather than an individual so everyone can benefit from the conversation.<br><br>Yes, that explanation is exactly what I thought you were talking about. See this example for how to attach that temperature value to your grid points:<br>
<br><a href="http://www.vtk.org/Wiki/Add_Miscellaneous_Data_to_Points_in_a_Polydata">http://www.vtk.org/Wiki/Add_Miscellaneous_Data_to_Points_in_a_Polydata</a><br>
<a href="http://www.vtk.org/Wiki/Add_Miscellaneous_Data_to_Cells_in_a_Polydata">http://www.vtk.org/Wiki/Add_Miscellaneous_Data_to_Cells_in_a_Polydata</a><br><br>I'm assuming the values are already in that type of array in your vtk file? If you can't get it from here please provide the vtk file and we'll take a look.<br>
<br clear="all">Thanks,<br><br>David<br>