<html><body>
<p><tt>David Doria &lt;daviddoria@gmail.com&gt;</tt><tt>&nbsp;wrote on 26/04/2009 23:54:03:<br>
<br>
&gt; On Sun, Apr 26, 2009 at 6:16 AM, Maxime Taquet &lt;hystomagna@gmail.com&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>&nbsp; regards, Dave</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'd have to center the data, scale it, and then move it <br>
&gt; back to the original location. You'd have to figure out what % to <br>
&gt; scale to achieve the 1mm goal.<br>
&gt; <br>
&gt; Dave_______________________________________________<br>
&gt; Powered by www.kitware.com<br>
&gt; <br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware">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">http://www</a>.<br>
&gt; vtk.org/Wiki/VTK_FAQ<br>
&gt; <br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</tt></body></html>