[vtkusers] typo in previous mail

Arindam Bhattacharya arindamb at caip.rutgers.edu
Thu Mar 1 12:28:19 EST 2001


Hi,
    Sorry there was a typo in the code i ad sent previously..
This is the right code..
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);
	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