[vtkusers] Writing .vtk files

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Wed Sep 26 13:50:44 EDT 2001


hi,

>>>>> "LYC" == Lydia Yahia-Cherif <yahia at miralab.unige.ch> writes:

    LYC>   vtkPolyDataWriter *writer=vtkPolyDataWriter::New();
    writer-> SetInput(stripper->GetOutput()); SetFileName("mesh.vtk");
    writer-> SetFileType(2);
 
    LYC> The problem is that the file mesh.vtk is not created. Is
    LYC> there anything that has to be added ?? I can't find it in the

I think you have to add a:

writer->Write();

That should do the job.

prabhu



More information about the vtkusers mailing list