[vtkusers] Wrong result with VTP files

Nour Mestiri nourmestiri at yahoo.fr
Mon Feb 9 11:18:31 EST 2009


Hi all vtk users.
I have many VRML images. When i save one of those images as a VTP file and i display it, i always have a 'blue' data (i join here the code i use)
I want to know if thers is a wrong thing which gives me such output.
Thank you so much
 
 
vtkVRMLImporter *vrml = vtkVRMLImporter::New();
vrml->SetRenderWindow(myRenderWindow);
vrml->SetFileName(fileName.wrl);
vrml->Update();
myRenderWindow->Render();
 
vtkDataSet *object;
vtkActorCollection *actor = Afficher->GetActors();
actor->InitTraversal();
object = actor->GetNextActor()->GetMapper()->GetInput();
 
// Save the data as a VTP file
vtkXMLPolyDataWriter *vtpObject = vtkXMLPolyDataWriter::New();
vtpObject->SetInput(object);
vtpObject->SetFileName(vtpFile);
vtpObject->SetDataModeToAscii();
vtpObject->Write();
vtpObject->Delete();


      __________________________________________________________________________________________________
Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090209/f9f48be8/attachment.htm>


More information about the vtkusers mailing list