<div dir="ltr"><div>Instead of</div><div>warp.Vectors = ['POINTS', 'Total_displacement']</div>
<div>try</div><div>warp.SetInputArraysToProcess(0,0,0,"<span style="background-color:rgb(251,252,253);color:rgb(0,0,0);font-family:monospace,fixed;font-size:15px;line-height:18px">vtkDataObject::FIELD_ASSOCIATION_POINTS", "Total_displacement")</span></div>
<div><br></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
<br><br><div class="gmail_quote">On Tue, May 13, 2014 at 12:42 PM, Fabio Canesin <span dir="ltr"><<a href="mailto:fabio.canesin@gmail.com" target="_blank">fabio.canesin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Tried that, didn't work.. I'm thinking is something with SetInputArrayToProcess.<br>
<div><div><br>
On Tue, May 13, 2014 at 1:30 PM, David E DeMarle<br>
<<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:<br>
><br>
> On Tue, May 13, 2014 at 12:06 PM, Fabio Canesin <<a href="mailto:fabio.canesin@gmail.com" target="_blank">fabio.canesin@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Dear vtkusers,<br>
>><br>
>> Can someone help in the usage of vtkWarpVector, I need to load the<br>
>> deformed grid, this should be the result of applying vtkWarpVector in<br>
>> the 'Total_displacement' field.<br>
>><br>
>> I have tried:<br>
>><br>
>> warp = vtk.vtkWarpVector()<br>
>> warp.SetInputConnection(pregrid.GetProducerPort())<br>
>> warp.Vectors = ['POINTS', 'Total_displacement']<br>
>> warp.SetScaleFactor(1.0)<br>
>> Extract = vtk.vtkExtractUnstructuredGrid()<br>
>> Extract.SetInputConnection(warp.GetOutputPort())<br>
><br>
><br>
> Are you missing an update here?<br>
>> Extract.Update()<br>
><br>
>><br>
>> deformed_grid = Extract.GetOutput()<br>
>><br>
>> Where pregrid is a vtkUnstrcturedGrid with the 'Total_displacement' as<br>
>> PointData. When I execute it I get the original mesh, without the<br>
>> warping.<br>
>><br>
>> Any help ??<br>
>><br>
>> Best regards,<br>
>> Fábio Canesin<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>