<div dir="ltr">Hello Andrew,<br><br>One simple solution can be to "Pad" the image by one pixel in every direction, using the vtkImageConstantPad filter before the Marching Cubes. Hence the generated mesh shall be closed.<br><br>Simon</div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-18 14:56 GMT+02:00 Andrew Crozier <span dir="ltr"><<a href="mailto:andrew.crozier@medunigraz.at" target="_blank">andrew.crozier@medunigraz.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am using vtkDiscreteMarchingCubes to generate a surface mesh from a segmented image volume, prior to applying a custom smoothing algorithm and finally rendering a new image volume.<br>
<br>
The rendering step has problems when the surface mesh is not closed, which occurs when the segmented object meets a side of the image volume. Is there some way that I can generate a closed surface from the marching cubes algorithm, or postprocess the open surface (or contours generated from it by vtkCutter) to close it?<br>
<br>
Many thanks,<br>
Andrew<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>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div>