<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, May 13, 2014 at 12:06 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">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></blockquote><div><br></div><div>Are you missing an update here?</div><div>> Extract.Update()</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


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 <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: <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>
</blockquote></div><br></div></div>