<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div id="yiv2124982080"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div id="yiv2124982080yui_3_2_0_14_132316195738740"><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
 http://www.opentopology.org/</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></body></html>