<div dir="ltr">Since you said "<span><font size="2"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">2D binary
slices" vtkDiscreteMarchingCubes may be more appropriate than vtkMarchingCubes.<br><br>What do you think Bill?<br><br>Jothy<br></span></font></span><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 5:03 PM, Malsoaz James <span dir="ltr"><<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div>
<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div><font size="2"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">Dear VTK users</span></font><span><font size="2"><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">I'm trying to build a 3D mesh from a vtkImageData using vtkMarchingCubes.</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<span style="font-family:Courier New,courier,monaco,monospace,sans-serif">The vtkImageData is build from a list of 2D binary
slices.</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">vtkMarchingCubes works great. But when a slice(s) is(are) missing, it creates a hole in the 3D mesh (see image in attachment).</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">1 - How can I fill this kind of hole ? Ideally, I would like to link the two parts of the mesh</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">2 - I found a solution in the use of a
resampler (vtkImageResample, vtkImageShrink3D, don't know which one is recommanded). Unfortunately, it sometimes produces ugly mesh with "stair effect" </span></font></span><span><font size="2"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">when the spacing is too big </span></font></span><span><font size="2"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">(still there after decimate and smooth). Is it a good solution ? How to solve the stair problem ?</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">3 - Browsing the mailing list brings me to the notion of "repair hole" for marching cubes. I don't know a lot about it. But should I look into this ? Some solutions exist for this such as
<a href="http://www.opentopology.org/" target="_blank">http://www.opentopology.org/</a></span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<span style="font-family:Courier New,courier,monaco,monospace,sans-serif">4 - Is vtkMarchingCubes the class I should use for my purpose or should I look at vtkVoxelContoursSurfaceFilter or any other filter ?</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><span style="font-family:Courier New,courier,monaco,monospace,sans-serif">Thank you for you help.</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<span style="font-family:Courier New,courier,monaco,monospace,sans-serif">Best.</span><br style="font-family:Courier New,courier,monaco,monospace,sans-serif"><br style="font-family:Courier New,courier,monaco,monospace,sans-serif">
<br style="font-family:Courier New,courier,monaco,monospace,sans-serif"></font><br></span></div></div></div></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><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>