[vtkusers] Need help to extract data from VTKMarchingCubes

saurisaran at aol.com saurisaran at aol.com
Tue Dec 9 09:33:05 EST 2008


Hi,

I am very new to vtk and need help. I want to use the vtkMarchingCubes for polygonizing a volume 
in a JAVA project. The Visualization ot the volume works very fine but i need the output of the marching
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.
I tried for example for the polygons:


vtkMarchingCubes surface = new vtkMarchingCubes();
surface.SetInput(vol);



vtkCellArray polys = new vtkCellArray();
polys.DeepCopy(surface.GetOutput().GetPolys());

When i do that way the program says that the number of cells is 0, but when i visualize it i get the
surface. Then i don´t know how to handle InitTraversel() Method or how i get the data from the cells.

Bye the way does someone know which version of the marching cubes algorithm is implemented in vtk.

Arne


new vtkMarchingCubes();
surface.SetInput(vol);



vtkCellArray polys = new vtkCellArray();
polys.DeepCopy(surface.GetOutput().GetPolys());

When i do that way the program says that the number of cells is 0, but when i visualize it i get the
surface. Then i don´t know how to handle InitTraversel() Method or how i get the data from the cells.

Bye the way does someone know which version of the marching cubes algorithm is implemented in vtk.

Arne

new vtkCellArray();
polys.DeepCopy(surface.GetOutput().GetPolys());

When i do that way the program says that=2
0the number of cells is 0, but when i visualize it i get the
surface. Then i don´t know how to handle InitTraversel() Method or how i get the data from the cells.

Bye the way does someone know which version of the marching cubes algorithm is implemented in vtk.

Arne

________________________________________________________________________
AOL eMail auf Ihrem Handy! Ab sofort können Sie auch unterwegs Ihre AOL email abrufen. Registrieren Sie sich jetzt kostenlos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081209/4009836d/attachment.htm>


More information about the vtkusers mailing list