<div>Hi everyone,</div>
<div> </div>
<div>I use vtkPolyDataWriter to write into a pdw file a successfully segmented volume data, using the statements below:</div>
<div> </div>
<div>vtkPolyDataWriter* writer=vtkPolyDataWriter::New();<br> writer->SetInput(marchingcube->GetOutput());<br> writer->SetFileName("heart.pdw");<br> writer->Write();</div>
<div> </div>
<div>and use vtkPolyDataReader to retrieve the data from that file afterwards:</div>
<div> </div>
<div>vtkPolyDataReader* reader2=vtkPolyDataReader::New();<br> reader2->SetFileName("heart.pdw");<br> reader2->Update();</div>
<div> </div>
<div>but an error arise with the message: </div>
<div> </div>
<div>Generic Warning: In \vtk-4-2\Io\vtkDataReader.cxx, line 833<br>Error reading ascii data!</div>
<div> </div>
<div>I have tried reading another pdw file using vtkPolyDataReader class successfully, so I guess there might be something</div>
<div>wrong with the vtkPolyDataReader---is there any other parameters/properties I have to set before writing to file?</div>
<div> </div>
<div>BTW: there is no problem with marchingcube->GetOutput(). It can be correctly visualized.</div>
<div> </div>
<div>Any feedback will be greatly appreciated!</div>
<div> </div>
<div>Taokai</div>
<div>Oct.9</div>