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