[vtkusers] Bug in vtkVRMLImporter

C. Hiba hiba_vtk at yahoo.fr
Thu Apr 24 15:12:23 EDT 2008


Hi everyone,
  I'm trying to read a VRML file like this:
   
  vtkDataSet *pDataset;
vtkVRMLImporter *vrml = vtkVRMLImporter::New();
  vrml->SetFileName("file.wrl");
vrml->Update();
   
  vtkActorCollection *actors = vrml->GetRenderer()->GetActors();
actors->InitTraversal();
  pDataset = actors->GetNextActor()->GetMapper()->GetInput();
   
  vtkGeometryFilter* geometryFilter = vtkGeometryFilter::New();
geometryFilter->SetInput(pDataset);
 
vtkPolyData* polyData = vtkPolyData::New();
polyData = geometryFilter->GetOutput();
polyData->Update();
   
   
  But i have this bug:
   
  error LNK2001: unresolved external symbol "public: static class vtkVRMLImporter * __cdecl vtkVRMLImporter::New(void)" (?New at vtkVRMLImporter@@SAPAV1 at XZ)
Debug/myProject.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
   
  Please, what should i do?
   
  Thank you for your help
   

 __________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080424/d6a87d15/attachment.htm>


More information about the vtkusers mailing list