Dear all<br><br>I'm trying to write my polydata object into a *.vtk file.<br><br>The polydata object has point data, polygon data and texture coordinates.<br><br>Here is what I do with vtkGenericDataObjectWriter<br><br>
vtkGenericDataObjectWriter* writer = vtkGenericDataObjectWriter::New();<br>writer->SetFileName("C:\\Users\\User1\\Desktop\\newpolydata.vtk");<br>writer->SetInput(polydata); //polydata is my polydata object<br>
writer->Update();<br><br>But this asctually gives me nothing. No vtk file was generated.<br><br>Can anyone tell me what is wrong with my code? If it is totally wrong, would you please write a simple demo?<br><br>Thank you very much.<br>
<br>Best Regards<br>Wenlong<br>