[vtkusers] Writing .vtk files
Amy Henderson
amy.henderson at kitware.com
Wed Sep 26 13:42:49 EDT 2001
Did you call writer->Write() after you set the parameters for the
writer? The file won't be created without that call.
- Amy
At 07:41 PM 9/26/2001 +0200, Lydia Yahia-Cherif wrote:
>Hi everybody,
>I want to create a 3D model starting from contours. I used the Marching
>cubes and
>the following sequence is the end part of my program.
>
> vtkPolyDataWriter *writer=vtkPolyDataWriter::New();
> writer->SetInput(stripper->GetOutput());
> writer->SetFileName("mesh.vtk");
> writer->SetFileType(2);
>
>The problem is that the file mesh.vtk is not created. Is there anything that
>has to be added ?? I can't find it in the examples.
>Thanks for the reply
>Lydia
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list