Another approach is to generate a distance map, threshold at some selected distance, and then re-run marching cubes to generate an expanded surface. I don&#39;t really know whether this will help w/ your specific irregular shapes, but we&#39;ve used it on jagged tumor segmentations and it works pretty well. <br>
<br>for an example implementation, see updatedistancemapvolume and updatemodelpipeline in [1]<br><br>that code uses a vtk-&gt;itk wrapper [2] around an itk dmap function, but the extra layer is convoluted. I think there is a distance map function available directly in vtk for use instead.<br>
<br>-Isaiah<br><br>[1] <a href="https://github.com/ihnorton/Slicer-DistanceTransformModel/blob/master/Logic/vtkSlicerDistanceTransformModelLogic.cxx">https://github.com/ihnorton/Slicer-DistanceTransformModel/blob/master/Logic/vtkSlicerDistanceTransformModelLogic.cxx</a><br>
[2] 
<a href="http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/Libs/vtkITK/vtkITKDistanceTransform.cxx?revision=17572&amp;view=markup">http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/Libs/vtkITK/vtkITKDistanceTransform.cxx?revision=17572&amp;view=markup</a><br>
<br><div class="gmail_quote">On Fri, Sep 2, 2011 at 11:26 AM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Has anyone have any idea about how to do this?<br><br>Thanks<br><font color="#888888"><br>Jothy</font><div><div></div><div><br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 9:41 AM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br><br>I am trying to expand surfaces(isotropically/anisotropically) generated from vtkDiscreteMarchingCubes. I used this as reference <a href="http://www.mlahanas.de/CompGeom/Margins.htm" target="_blank">http://www.mlahanas.de/CompGeom/Margins.htm</a>.<br>



<br>It works well for more or less regular volumes. But for irregualr structures it doesn&#39;t work properly. For example, spinal cord (looks in &quot;C&quot; shape in sagittal view) it doesn&#39;t expand in the anterior direction. I even tweaked the sigma in vtkThinPlateSplineTransform.<br>



<br>Any hints?<br><br>Thanks<br><font color="#888888"><br>Jothy<br></font></div>
</blockquote></div><br></div></div></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>