[英]Save a Mesh file under VTK
I'm trying to generate a mesh from a 3d volume. 我正在尝试从3d体积生成网格。 I processed on VTK, using Marching Cube (vtkMarchingCubes.h); 我使用Marching Cube(vtkMarchingCubes.h)处理了VTK。 but I still can't found how to save the result view, as vtk file! 但我仍然找不到如何将结果视图另存为vtk文件!
any idea 任何想法
I appreciate your help. 我感谢您的帮助。
You can use vtkPolyDataWriter or vtkXMLPolyDataWriter to write the mesh data to files. 您可以使用vtkPolyDataWriter或vtkXMLPolyDataWriter将网格数据写入文件。
If you want the write the rendered output in a window you can use vtkWindowToImageFilter as a starting point 如果要在窗口中写入渲染的输出,则可以使用vtkWindowToImageFilter作为起点
Mayavi is a very nice tool to visualize the files. Mayavi是一个非常不错的工具,可用于可视化文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.