Hi,<br>
<br>
I am very new to&nbsp;vtk and need help. I want to use the vtkMarchingCubes for polygonizing a volume <br>
in a JAVA project. The Visualization ot the volume works very fine but i need the output of the marching<br>
cubes as data for further processing in that way that i get the pointlist of the surface points and triangles(polygons) as lists of indices of the points. My big problem is that i don´t know how i get this data.<br>
I tried for example for the polygons:<br>
<br>
<FONT size=2><FONT size=2>

<div align=left>vtkMarchingCubes surface = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> vtkMarchingCubes();</div>


<div align=left>surface.SetInput(vol);</div>


<div align=left></div>


<div align=left>vtkCellArray polys = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> vtkCellArray();</div>


<div>polys.DeepCopy(surface.GetOutput().GetPolys());<br>
<br>
<FONT size=1>When i do that way the program says that the number of cells is 0, but when i visualize it i get the<br>
surface. Then i don´t know how&nbsp;to handle InitTraversel() Method or how i get the data from the cells.<br>
<br>
Bye the way does someone know which version of the marching cubes algorithm is implemented in vtk.<br>
<br>
Arne</FONT></div>
</FONT></FONT><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<b>AOL eMail auf Ihrem Handy!</b>Ab sofort können Sie auch unterwegs Ihre AOL email abrufen. <a href="http://www.aol.de/Webmail/" target="_blank">Registrieren</a> Sie sich jetzt kostenlos.<br />=0
D
</div>