<br><div class="gmail_quote">On Sun, Apr 26, 2009 at 5:13 PM,  <span dir="ltr">&lt;<a href="mailto:David.Pont@scionresearch.com">David.Pont@scionresearch.com</a>&gt;</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;">
<div>
<p><tt>David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</tt><tt> wrote on 26/04/2009 23:54:03:<br>
<br>
&gt; On Sun, Apr 26, 2009 at 6:16 AM, Maxime Taquet &lt;<a href="mailto:hystomagna@gmail.com" target="_blank">hystomagna@gmail.com</a>&gt; wrote:</tt><br>
<tt>&gt; Dear all,<br>
&gt; <br>
&gt; I have a vtkPolyData object which represents the surface of a bone. <br>
&gt; I would like to enlarge this surface of 1mm in all directions. This <br>
&gt; can be seen as the new surface of a dilated version of the bone.<br>
&gt; <br>
&gt; Do you know any easy way to compute it?</tt><br>
<br>
<tt>Having just replied to another post where vtkImplicitModeller was mentioned.... it might be worth a look for your problem,</tt><br>
<br>
<tt>  regards, Dave</tt></p></div></blockquote><div> you could also have a look at vtkWarpScalar to warp the bone normal to
the surface given an array of displacements (in your case a constant
.01).  vtkWarpVector if you want to specify your own directions.<br>
-Jeff<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><p><tt></tt><br>
<tt><br>
&gt; <br>
&gt; Best,<br>
&gt; <br>
&gt; Maxime<br>
&gt; _______________________________________________</tt><br>
<tt>&gt;  </tt><br>
<tt>&gt; Maybe you could just scale the polydata using<br>
&gt; #include &lt;vtkTransformPolyDataFilter.h&gt;<br>
&gt; <br>
&gt; vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt; TransFilter = <br>
&gt; vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt;::New();<br>
&gt;     TransFilter-&gt;SetInput(YourPolydata);<br>
&gt;     TransFilter-&gt;SetTransform(ScaleTransform); //use vtkTransform <br>
&gt; (or maybe vtkLinearTransform)<br>
&gt;     TransFilter-&gt;Update();<br>
&gt;     vtkPolyData* ScaledPolydata = TransFilter-&gt;GetOutput();<br>
&gt; <br>
&gt; <br>
&gt; I think you&#39;d have to center the data, scale it, and then move it <br>
&gt; back to the original location. You&#39;d have to figure out what % to <br>
&gt; scale to achieve the 1mm goal.<br>
&gt; <br>
&gt; Dave_______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; <br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware" target="_blank">http://www.kitware</a>.<br>
&gt; com/opensource/opensource.html<br>
&gt; <br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www" target="_blank">http://www</a>.<br>
&gt; <a href="http://vtk.org/Wiki/VTK_FAQ" target="_blank">vtk.org/Wiki/VTK_FAQ</a><br>
&gt; <br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</tt></p></div><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>
<br></blockquote></div><br>