I'm trying to generate a mesh from a 3d volume. I processed on VTK, using Marching Cube (vtkMarchingCubes.h); but I still can't found how to save the result view, as vtk file!
any idea
I appreciate your help.
I'm trying to generate a mesh from a 3d volume. I processed on VTK, using Marching Cube (vtkMarchingCubes.h); but I still can't found how to save the result view, as vtk file!
any idea
I appreciate your help.
You can use vtkPolyDataWriter or vtkXMLPolyDataWriter to write the mesh data to files.
If you want the write the rendered output in a window you can use vtkWindowToImageFilter as a starting point
You can find some examples here
Mayavi is a very nice tool to visualize the files.