<div>Hi I figured out why I couldn't get vtkImageMarchingCubes to show the whole surface.</div>
<div>&nbsp;</div>
<div>When using glDrawArrays, it should be:<font size="2">
<p>glDrawArrays ( GL_TRIANGLES,0, pSurface-&gt;GetNumVertices());</p>
<p>Instead of</p></font><br><br>glDrawArrays ( GL_TRIANGLES,0, pSurface-&gt;GetNumTriangles());
<p>&nbsp;</p>
<p>- xin</p></div>
<div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">Xin Guan</b> &lt;<a href="mailto:xinvar@gmail.com">xinvar@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>I'm trying to extract the outer surface of a brain volume data. I tried both vtkDataSetSurfaceFilter and vtkImageMarchingCubes&nbsp;(marching&nbsp;cubes algorithm&nbsp;goes&nbsp;after thresholding and smoothing). However, neither of them give the correct surface. 
</div>
<div>&nbsp;</div>
<div>vtkDataSetSurfaceFilter will only give the volume bounding box surface&nbsp;-- well in some sense it&nbsp;IS the outer surface, just too out. Result remains the same after thresholding.</div>
<div>&nbsp;</div>
<div>vtkImageMarchingCubes gives a nice surface, but only the lower 1/4 part of the volume. I read the vtkImageMarchingCubes&nbsp;documentation, but have no clue why this would happen.</div>
<div>&nbsp;</div>
<div>The data set is converted from ITK and&nbsp;should be&nbsp;okay. I&nbsp;manually constructed it and got the same error.</div>
<div>&nbsp;</div>
<div>I would appreciate any help.</div></div>
<div><span class="sg">
<div>&nbsp;</div>
<div>- xin</div></span></div></blockquote></div><br>