[vtkusers] problem with vrmlwriter

Arindam Bhattacharya arindamb at caip.rutgers.edu
Thu Mar 1 12:26:37 EST 2001


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 ??

regards
Arindam





More information about the vtkusers mailing list