<html><body>
<p><tt>David Doria <daviddoria@gmail.com></tt><tt> wrote on 26/04/2009 23:54:03:<br>
<br>
> On Sun, Apr 26, 2009 at 6:16 AM, Maxime Taquet <hystomagna@gmail.com> wrote:</tt><br>
<tt>> Dear all,<br>
> <br>
> I have a vtkPolyData object which represents the surface of a bone. <br>
> I would like to enlarge this surface of 1mm in all directions. This <br>
> can be seen as the new surface of a dilated version of the bone.<br>
> <br>
> 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><br>
<tt><br>
> <br>
> Best,<br>
> <br>
> Maxime<br>
> _______________________________________________</tt><br>
<tt>> </tt><br>
<tt>> Maybe you could just scale the polydata using<br>
> #include <vtkTransformPolyDataFilter.h><br>
> <br>
> vtkSmartPointer<vtkTransformPolyDataFilter> TransFilter = <br>
> vtkSmartPointer<vtkTransformPolyDataFilter>::New();<br>
> TransFilter->SetInput(YourPolydata);<br>
> TransFilter->SetTransform(ScaleTransform); //use vtkTransform <br>
> (or maybe vtkLinearTransform)<br>
> TransFilter->Update();<br>
> vtkPolyData* ScaledPolydata = TransFilter->GetOutput();<br>
> <br>
> <br>
> I think you'd have to center the data, scale it, and then move it <br>
> back to the original location. You'd have to figure out what % to <br>
> scale to achieve the 1mm goal.<br>
> <br>
> Dave_______________________________________________<br>
> Powered by www.kitware.com<br>
> <br>
> Visit other Kitware open-source projects at <a href="http://www.kitware">http://www.kitware</a>.<br>
> com/opensource/opensource.html<br>
> <br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www">http://www</a>.<br>
> vtk.org/Wiki/VTK_FAQ<br>
> <br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</tt></body></html>