[vtkusers] problem with vrmlwriter

Oliver Fleig Oliver.Fleig at univ-rennes1.fr
Fri Mar 2 06:04:35 EST 2001


Arindam Bhattacharya wrote:

> Hello,
>        I am facing a problem with vtkVRMLWrter.. if  use a filepointer to
> write to a file like 
> 
> FILE *myfile;
> myfile=fopen("myfile.wrl","w");
> fprintf(myfile,"Content-type: x-world/x-vrml\n");
>   fprintf(myfile,"Pragma: no-cache\n\n");
> writer->SetFileName("myfile.wrl");
> 	renWin->SetSize( 300, 300 );
>   renWin->Render();
>   writer->Write();
> 
> this gives me an error as it fails in Write .. DO I have to initialise
> anything else ??

Try to close the file before you attempt to write to it in aother process.

Cheers


Oliver

-- 
Oliver Fleig  Laboratoire SIM
+33 2 99 33 68 63
mailto:Oliver.Fleig at univ-rennes1.fr
http://sim3.univ-rennes1.fr/users/fleig





More information about the vtkusers mailing list