<br><div class="gmail_quote">On Sun, Apr 26, 2009 at 5:13 PM, <span dir="ltr"><<a href="mailto:David.Pont@scionresearch.com">David.Pont@scionresearch.com</a>></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 <<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></tt><tt> wrote on 26/04/2009 23:54:03:<br>
<br>
> On Sun, Apr 26, 2009 at 6:16 AM, Maxime Taquet <<a href="mailto:hystomagna@gmail.com" target="_blank">hystomagna@gmail.com</a>> 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></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>
> <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 <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" target="_blank">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" target="_blank">http://www</a>.<br>
> <a href="http://vtk.org/Wiki/VTK_FAQ" target="_blank">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>
</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>