<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks for the help.<div class=""><br class=""></div><div class="">I’m looking at vtkWarpVector examples, however, and both of them are simply: </div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>warp = vtk.vtkWarpVector()</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>warp.SetInputConnection(p2c.GetOutputPort())</div><div class=""><br class=""></div><div class="">and:</div><div class=""><span style="font-family: monospace; font-size: small; white-space: pre;" class=""><br class=""></span></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>warp = vtk.vtkWarpVector()</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>warp.SetInputConnection(castToUnstructuredGrid.GetOutputPort())</div><div class=""><br class=""></div><div class="">I can’t figure out how to apply this class to my needs. Is there an example anywhere that I can use?</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Richard</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 18 Apr 2016, at 20:11, David Gobbi <<a href="mailto:david.gobbi@gmail.com" class="">david.gobbi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">In order to get vtkWarpVector to use the normals, it might need this:</div><div class=""><br class=""></div>warpvector->SetInputArrayToProcess(0, 0, 0,<div class=""> vtkDataObject::FIELD_ASSOCIATION_POINTS,</div><div class=""> vtkDataSetAttributes::NORMALS);<br class=""></div><div class=""><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Apr 18, 2016 at 11:57 AM, Bill Lorensen <span dir="ltr" class=""><<a href="mailto:bill.lorensen@gmail.com" target="_blank" class="">bill.lorensen@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vtkWarpVector<br class="">
<div class="HOEnZb"><div class="h5"><br class="">
<br class="">
On Mon, Apr 18, 2016 at 12:53 PM, mbcx9rb9 <<a href="mailto:richard.j.brown@live.co.uk" class="">richard.j.brown@live.co.uk</a>> wrote:<br class="">
> I've seen this asked a few times, but I haven't seen an answer for what seems<br class="">
> like a relatively simple task.<br class="">
><br class="">
> How do I go about expanding a surface by a given value (adding the value as<br class="">
> opposed to multiplying a scaling factor).<br class="">
><br class="">
> Is there a class for this?<br class="">
><br class="">
> The logic seems pretty straightforward:<br class="">
> for each point<br class="">
> new point = point + distance*normal<br class="">
> end for<br class="">
><br class="">
> Thanks in advance for any help,<br class="">
> Richard<br class=""></div></div></blockquote></div></div></div>
</div></blockquote></div><br class=""></div></div></body></html>